Skip to main content
POST
/
v2
/
collections
/
{collectionId}
/
dossier
/
create
Create a dossier
curl --request POST \
  --url https://rest.forestreet.com/v2/collections/{collectionId}/dossier/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "query": "<string>"
}
'
{
  "agentId": "<string>",
  "taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

x-api-key
string
header
required

Pass a static API key for every request, provided by your customer support.

Path Parameters

collectionId
number | null

The collection ID to which the new dossier belongs. The collection ID to which the new dossier belongs.

Query Parameters

teamId
integer
required

Unique identifier of the team from which a quota should be consumed. Unique identifier of the team from which a quota should be consumed.

Required range: x >= 1

Body

application/json
query
string
required

The query to create the dossier.

Response

Dossier created successfully

agentId
string
required

Unique identifier for the created dossier agent

taskId
string<uuid>
required

ID of the task associated with the created dossier agent