POST
/
snippets
Create Snippet
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

user_uuid
string
required
conversation_id
string
required
video
object
required
Example:
{
"start_time": 120.5,
"end_time": 180.75,
"duration": 60.25
}
internal
boolean
required
notify_views
boolean
required
reference
object
Example:
{
"characters": { "start_idx": "0", "end_idx": "150" },
"speakers": { "start_idx": "0", "end_idx": "50" },
"transcript_version": "V2"
}
notes
string
title
string
in_library
boolean

Indicates whether the snippet should be added to the library or not

library_item_info
object
Example:
{
"my_library": true,
"folder_path": "/sales/meetings"
}

Response

Snippet successfully created and stored

url
string
required
id
string
required
share_code
string