POST
/
v0
/
topics
curl --request POST \
  --url https://api.avidoai.com/v0/topics \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-application-id: <api-key>' \
  --data '{
  "title": "Code Quality",
  "baseline": 0.85
}'
{
  "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

x-api-key
string
header
required

Your unique Avido API key

x-application-id
string
header
required

Your unique application ID. Get this from the Connections page in Avido.

Body

application/json

Request body for creating a new topic

title
string
required

Title of the topic

Example:

"Code Quality"

baseline
number | null

Optional baseline score for this topic

Example:

0.85

Response

201
application/json
Successfully created topic

Successful response containing the topic data

data
object
required

Details about a single Topic