Assistant
Streaming AI assistant that answers questions about the API catalog using tools to query services and their details.
Project API key authentication. Use your project API key as a Bearer token in the Authorization header.
Catalog version identifier
ver_c4x6k3w8j7n9b1z5s2t4m8q0veAI-sdk structured conversation payload for the AI assistant
Server-sent events stream of AI assistant response
AI-sdk protocol streaming response
Invalid request
Internal Server Error
POST /v2/catalog/versions/{versionId}/assistant HTTP/1.1
Host: api.appear.sh
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 212
{
"messages": [
{
"id": "text",
"role": "system",
"parts": [
{
"type": "text",
"text": "text",
"state": "streaming",
"providerMetadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
]
}No content
Streaming AI assistant that answers questions about the API catalog using tools to query services and their details.
Project API key authentication. Use your project API key as a Bearer token in the Authorization header.
Project slug or project id (proj_*)
Object ID with prefix "proj_"
proj_c4x6k3w8j7n9b1z5s2t4m8q0veVersion type, can be either 'branch' or 'environment'
branchPossible values: Version slug
mainAI-sdk structured conversation payload for the AI assistant
Server-sent events stream of AI assistant response
AI-sdk protocol streaming response
Invalid request
Internal Server Error
POST /v2/catalog/projects/{projectRef}/{versionType}/{versionSlug}/assistant HTTP/1.1
Host: api.appear.sh
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 212
{
"messages": [
{
"id": "text",
"role": "system",
"parts": [
{
"type": "text",
"text": "text",
"state": "streaming",
"providerMetadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
]
}No content
Last updated