POST
/
api
/
v1
/
agent-documents
curl --location --request POST 'https://api.superagent.sh/api/v1/agents' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
--data-raw '{
    "agentId": "<AGENT_ID>",
    "documentId": "<DOCUMENT_ID>"
}'
{
  "success": true,
  "data": {
      "user": {},
      "agent": {},
      "agentId": "",
      "document": {},
      "documentId": ""
    }
}

Body

documentId
string
A valid Document ID.
agentId
string
A valid Agent ID.

Response

success
boolean
Indicates whether the call was successful.
data
object
Agent document object
curl --location --request POST 'https://api.superagent.sh/api/v1/agents' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
--data-raw '{
    "agentId": "<AGENT_ID>",
    "documentId": "<DOCUMENT_ID>"
}'
{
  "success": true,
  "data": {
      "user": {},
      "agent": {},
      "agentId": "",
      "document": {},
      "documentId": ""
    }
}