Passer au contenu principal
POST
Add contact knowledge

Autorisations

Authorization
string
header
requis

Company API key, sent as Authorization: Bearer <key>. Create it in the dashboard (Developer > API Keys) with the permissions the integration needs.

Paramètres de chemin

agent
string
requis

Corps

application/json
contact
string
requis

Phone number, email address or, on a Shortext endpoint, the id your server gave

content
string
requis
Maximum string length: 5000
Exemple:

"Prefers to be called Mrs. Ndongo; VIP customer since 2023."

Réponse

200 - application/json

Always HTTP 200: the outcome is in success and code (absolute value of the response code).

success
boolean
Exemple:

true

code
integer
Exemple:

1000

message
string
Exemple:

"Request success."

body
object

Endpoint payload, null when there is none

token
string | null

Present only on authentication routes

trace_id
string | null

Present only when success is false