Topics
Create a new topic
Creates a new topic.
POST
/
v0
/
topics
Copy
curl --request POST \
--url https://api.avidoai.com/v0/topics \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"title": "Code Quality",
"baseline": 0.85
}'
Copy
{
"data": {
"id": "789e4567-e89b-12d3-a456-426614174000",
"orgId": "org_123456",
"title": "Code Quality",
"baseline": 0.85,
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z"
}
}
Authorizations
Your unique Avido API key
Body
application/json
Request body for creating a new topic
Response
201
application/json
Successfully created topic
Successful response containing the topic data
Copy
curl --request POST \
--url https://api.avidoai.com/v0/topics \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"title": "Code Quality",
"baseline": 0.85
}'
Copy
{
"data": {
"id": "789e4567-e89b-12d3-a456-426614174000",
"orgId": "org_123456",
"title": "Code Quality",
"baseline": 0.85,
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.