POST
/
v0
/
annotations
curl --request POST \
  --url https://api.avidoai.com/v0/annotations \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "title": "Updated system prompt",
  "description": "The system prompt was updated to include more examples",
  "applicationId": "<string>"
}'
{
  "data": {
    "id": "789e4567-e89b-12d3-a456-426614174000",
    "orgId": "org_123456",
    "title": "Retrieval topK",
    "description": "Change the topK on retrieval",
    "createdAt": "2024-01-05T12:34:56.789Z",
    "modifiedAt": "2024-01-05T12:34:56.789Z"
  }
}

Authorizations

x-api-key
string
header
required

Your unique Avido API key

Body

application/json

Request body for creating a new annotation

title
string
required

Title of the annotation

Example:

"Updated system prompt"

applicationId
string
required

The ID of the application this annotation belongs to

description
string | null

A description of what was changed in the application configuration

Example:

"The system prompt was updated to include more examples"

Response

201
application/json
Successfully created annotation

Successful response containing the annotation data

data
object
required

A single annotation indicating a change in the AI application configuration