Skip to main content
POST
/
v1
/
crm
/
agents
/
{agentId}
/
documents
Create a Document
curl --request POST \
  --url https://api.example.com/v1/crm/agents/{agentId}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>' \
  --form 'name=<string>' \
  --form 'description=<string>' \
  --form documentTypeId=123 \
  --form file.0='@example-file' \
  --form file.1='@example-file' \
  --form file.2='@example-file' \
  --form file.3='@example-file' \
  --form file.4='@example-file' \
  --form file.5='@example-file' \
  --form file.6='@example-file' \
  --form file.7='@example-file' \
  --form file.8='@example-file'
{
  "file": "<string>",
  "name": "<string>",
  "description": "<string>",
  "documentTypeId": 123,
  "visibility": []
}

Authorizations

Authorization
string
header
required

Enter token in following format: Bearer

Path Parameters

agentId
string
required

Body

multipart/form-data
file
required
Maximum string length: 25000000
name
string
required
description
string | null
documentTypeId
number | null
visibility
enum<string>[]
Available options:
partner,
merchant,
risk,
agent,
bank

Response

The created document.

file
required
Maximum string length: 25000000
name
string
required
description
string | null
documentTypeId
number | null
visibility
enum<string>[]
Available options:
partner,
merchant,
risk,
agent,
bank