Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

Create Copilot

POST/v0/copilots/createCopilotCreate Copilot

Create a new agent. The API key used will be added to the agent 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 agent.

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

Responses

200Response with status 200application/json
objectcopilots_CreateCopilotResponse

CreateCopilotResponse

agentIdstring · uuidrequired
Example response
{
  "agentId": "00000000-0000-0000-0000-000000000000"
}
Documentation menu