Skip to main content
GET
/
api
/
artifacts
/
{artifactId}
cURL
curl -X GET "https://app.cotool.ai/api/artifacts/:artifactId" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "content": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Path Parameters

artifactId
string
required

Unique identifier of the artifact to retrieve

Query Parameters

chatId
string<uuid>
required

Unique identifier of the chat that owns this artifact

Response

200 - application/json

Successful response

Artifact content and metadata

content
string
required

The full content of the artifact

metadata
object

Optional metadata associated with the artifact