Skip to main content
POST
/
v1
/
documents
/
{id}
/
attach
Attach a document to an agent or assistant
curl --request POST \
  --url https://api.devic.ai/v1/documents/{id}/attach \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "targetId": "<string>"
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Use JWT token for authentication

Path Parameters

id
string
required

Document ID

Body

application/json
targetType
enum<string>
required

Type of entity to attach the document to

Available options:
agent,
assistant
targetId
string
required

ID of the agent or assistant

Response

Document attached successfully

success
boolean

Whether the operation succeeded