Skip to main content
POST
/
phone-consents
Record call consent
curl --request POST \
  --url https://api.crevio.co/v1/phone-consents \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "e164": "<string>",
  "timezone": "<string>",
  "customer": "<string>",
  "proof": {}
}
'
{
  "id": "<string>",
  "object": "<string>",
  "e164": "<string>",
  "timezone": "<string>",
  "consented_at": "2023-11-07T05:31:56Z",
  "revoked_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "customer": "<string>"
}

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Body

application/json
e164
string
purpose
enum<string>
Available options:
marketing,
transactional
Available options:
web_form,
checkout,
import,
verbal,
api,
other
timezone
string | null
customer
string | null

Customer ID

proof
object

Response

Consent recorded

id
string
required
object
string
required
e164
string
required
purpose
enum<string>
required
Available options:
marketing,
transactional
Available options:
web_form,
checkout,
import,
verbal,
api,
other
timezone
string | null
required
consented_at
string<date-time>
required
revoked_at
string<date-time> | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
customer
string | null
required