Skip to content

Create a contact list

POST
/v1/contact-lists
curl --request POST \
--url https://api.vocapable.com/v1/contact-lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "source": "upload", "consent_basis": "pewc", "attestation_ref": "example" }'
Idempotency-Key
Any of:
string

Unique key for this request, so a retry replays the original result instead of repeating the work. Stored for 24 hours; a replayed response carries Idempotent-Replay: true. A UUID is the documented shape.

Media typeapplication/json
ContactListCreateRequest
object
name
required
Name
string
>= 1 characters <= 200 characters
source
Source
string
default: api
Allowed values: upload api
consent_basis
Any of:
ConsentBasis

CANON fact 18 - the four consent classes (docs/07-compliance.md §consent).

string
Allowed values: pewc pec ebr transactional
attestation_ref
Any of:
string

Successful Response

Media typeapplication/json
ContactListSummary
object
id
required
Id
string
name
required
Name
string
source
required
Source
string
Allowed values: upload api
consent_basis
Any of:
ConsentBasis

CANON fact 18 - the four consent classes (docs/07-compliance.md §consent).

string
Allowed values: pewc pec ebr transactional
attestation_ref
Any of:
string
contact_count
required
Contact Count
integer
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
Example
{
"source": "upload",
"consent_basis": "pewc"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}