Skip to main content
POST
/
policies
/
{policyId}
/
documents
Generate Upload Document Url
curl --request POST \
  --url https://api.example.com/policies/{policyId}/documents \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "metadata": [
    {
      "key": "category",
      "value": "kbis"
    }
  ]
}
'
{
"url": "<string>",
"id": "<string>"
}

Path Parameters

policyId
string
required

the policy's id

Query Parameters

whenAt
string

Optional: the whenAt datetime

branchId
string

Optional: the branchId

Body

application/json

Add in metadata the documenttype for non-delegated document generation

name
string
required

name

metadata
object[]

metadata of the policy

Example:
[{ "key": "category", "value": "kbis" }]

Response

url
string
required

the signed url to upload the document

id
string
required

the id of the document