Skip to main content
POST
/
snippets
Create Snippet
curl --request POST \
  --url https://api.attention.tech/v2/snippets \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_uuid": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
  "conversation_id": "conv-uuid-123",
  "internal": false,
  "notify_views": true,
  "title": "Key Discovery Moment",
  "notes": "Customer mentioned budget constraints",
  "in_library": true,
  "video": {
    "start_time": 120.5,
    "end_time": 180,
    "duration": 59.5
  },
  "reference": {
    "characters": {
      "start_idx": "100",
      "end_idx": "250"
    },
    "speakers": {
      "start_idx": "2",
      "end_idx": "5"
    },
    "transcript_version": "V1"
  }
}
'
{
  "id": "snp-uuid-789",
  "url": "https://app.attention.tech/snippets/snp-uuid-789",
  "share_code": "abc123def"
}

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