Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

Create Collection

POST/v0/documentCollections/createCollectionCreate Collection

Create a new collection. The API key used will be added to the collection for future Requests

Request body

application/json
object
collaboratorsarray of objectrequired

A list of collaborator emails and roles that will have access to the agent.

Show child attributes
Show array items
emailstringrequired
rolestringrequired

one of "viewer", "editor"

descriptionstringrequired

An in depth name for the agent's function. Useful for routing requests to the right agent.

namestringrequired

A descriptive name for the collection.

Example request
{
  "collaborators": [
    {
      "email": "string",
      "role": "editor"
    }
  ],
  "description": "string",
  "name": "string"
}

Responses

200Response with status 200application/json
objectdocumentCollections_CreateCollectionResponse

CreateCollectionResponse

collectionIdstring · uuidrequired
Example response
{
  "collectionId": "00000000-0000-0000-0000-000000000000"
}
Documentation menu