Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

On this pageOverview

Create Copilot

POST https://api.credal.ai/api/v0/copilots/createCopilot Content-Type: application/json

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

Reference: https://docs.credal.ai/api-reference/api-reference/copilots/create-copilot

  • Authorization header (bearer token, required) — Bearer authentication of the form Bearer <token>, where token is your auth token.

Body (application/json)

This endpoint expects an object.

  • name (string, required) — A descriptive name for the agent.
  • description (string, required) — An in depth name for the agent's function. Useful for routing requests to the right agent.
  • collaborators (list of Collaborator, required) — A list of collaborator emails and roles that will have access to the agent.

200

  • agentId (UUID, required)

Types

Collaborator

  • email (string, required)
  • role (enum, required)
    • Allowed values: viewer, editor

Examples

Request

JSON
{
  "name": "Customer Agent",
  "description": "This agent is used to answer customer requests based on internal documentation.",
  "collaborators": [
    {
      "email": "test@gmail.com",
      "role": "editor"
    }
  ]
}

Response

JSON
{
  "agentId": "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
}
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu