POST
/
snippets
curl --request POST \
  --url http://api.attention.tech/v2/snippets \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "Customer expressed interest in enterprise features",
  "metadata": {
    "conversation_id": "conv_789",
    "tags": [
      "enterprise",
      "interest"
    ],
    "importance": "high"
  }
}'
{
  "snippet_id": "snp_456",
  "created_at": "2024-03-20T11:00:00Z",
  "status": "success"
}

Authorizations

Authorization
string
header
required

Body

Snippet creation request containing the conversation content and metadata

The body is of type object.

Response

200
application/json

Snippet successfully created and stored

The response is of type object.