curl --request POST \
--url https://rest.forestreet.com/v2/collections/{collectionId}/dossiers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"filters": {
"agentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"agentTypes": [
"supplierDossier"
],
"query": "<string>",
"createdBy": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"sort": [
{
"field": "createdAt",
"order": "asc"
}
]
}
'{
"metadata": {
"pagination": {
"totalItems": 123,
"totalPages": 123,
"currentPage": 123,
"pageSize": 123
},
"filters": {
"agentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"agentTypes": [
"supplierDossier"
],
"query": "<string>",
"createdBy": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"sort": [
{
"field": "createdAt",
"order": "asc"
}
]
},
"data": [
{
"agentId": "<string>",
"query": "<string>",
"agentType": "supplierDossier",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastModifiedAt": "<string>",
"lastTaskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastTaskStatus": {
"taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"status": "CREATED",
"lastReportedAt": "<string>",
"lastReportedBy": "<string>",
"agentId": "<string>",
"success": true
},
"createdAt": "<string>"
}
]
}Retrieve dossiers associated with a specific collection with optional filtering and pagination
curl --request POST \
--url https://rest.forestreet.com/v2/collections/{collectionId}/dossiers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"filters": {
"agentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"agentTypes": [
"supplierDossier"
],
"query": "<string>",
"createdBy": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"sort": [
{
"field": "createdAt",
"order": "asc"
}
]
}
'{
"metadata": {
"pagination": {
"totalItems": 123,
"totalPages": 123,
"currentPage": 123,
"pageSize": 123
},
"filters": {
"agentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"agentTypes": [
"supplierDossier"
],
"query": "<string>",
"createdBy": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"sort": [
{
"field": "createdAt",
"order": "asc"
}
]
},
"data": [
{
"agentId": "<string>",
"query": "<string>",
"agentType": "supplierDossier",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastModifiedAt": "<string>",
"lastTaskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastTaskStatus": {
"taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"status": "CREATED",
"lastReportedAt": "<string>",
"lastReportedBy": "<string>",
"agentId": "<string>",
"success": true
},
"createdAt": "<string>"
}
]
}Pass a static API key for every request, provided by your customer support.
The collection ID to which the new dossier belongs. The collection ID to which the new dossier belongs.
Optional filters to apply to the dossiers.
Show child attributes
Filter agents by the agent's unique identifier.
Filter agents by their type, e.g., 'supplierDossier'.
Type of agent, e.g., 'supplierDossier'
supplierDossier, marketInsight Filter agents by substring match on the original query.
Filter agents by the unique identifier of the user who created them.
Dossiers retrieved successfully
Show child attributes
Schema for pagination metadata, including total items, total pages, current page, and page size.
Show child attributes
Show child attributes
Filter agents by the agent's unique identifier.
Filter agents by their type, e.g., 'supplierDossier'.
Type of agent, e.g., 'supplierDossier'
supplierDossier, marketInsight Filter agents by substring match on the original query.
Filter agents by the unique identifier of the user who created them.
List of agents associated with the collection.
Show child attributes
Unique identifier for the agent
Original query used to create the agent
Type of agent, e.g., 'supplierDossier'
supplierDossier, marketInsight User ID of the creator of this agent
Timestamp when the agent was last modified
ID of the last task associated with this agent
Status of the last task associated with this agent
Show child attributes
Unique identifier for the task
Timestamp when the task was created
Current status of the task, indicating its progress
CREATED, INITIALIZING, ACQUIRING_TARGET, GATHERING_RESOURCES, GATHERING_INSIGHTS, FINDING_COMPETITORS, FINALIZING, COMPLETED, FAILED Timestamp of the last status update for the task
Hostname of the worker that last reported the status
Unique identifier for the agent associated with this task
Indicates whether the task was successful; if null, the task is still in progress
Timestamp when the agent was created