Skip to main content
GET
/
api
/
artifacts
/
{artifactId}
cURL
curl --request GET \
  --url https://app.cotool.ai/api/artifacts/{artifactId} \
  --header 'Authorization: Bearer <token>'
{
  "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