---
title: "The pre-dial check: may an AI call be placed to this number?"
method: POST
path: "/api/consent/check"
tags: ["Consent"]
---

# The pre-dial check: may an AI call be placed to this number?

`POST /api/consent/check`

## Request

- Base URL: `https://botnotice.app`
- URL: `https://botnotice.app/api/consent/check`
- Auth: HTTP bearer

Call it right before dialing and dial only when allowed is true. The answer is written to the record, so it shows the check happened before the call, and the response carries the opening line the call must start with. POST only, so no phone number lands in a URL.

## Request body

- object
  - `phone` string, required
  - `scope` 'marketing' | 'informational'
  - `call_ref` string: Your call id, written to the record

## Response `200`

OK

- ConsentCheck
  - `allowed` boolean: Dial only when true
  - `reason` 'consent_on_file' | 'no_consent' | 'revoked' | 'wrong_scope' | 'invalid_number'
  - `message` string
  - `consent` object, nullable
    - `id` string
    - `scope` string
    - `method` string
    - `consented_at` string
  - `disclosure` string: The line the call must open with
  - `policyVersion` integer, nullable

## Other responses

- `401`: Error

---

[API](https://skmtc.dev/botnotice/apis/botnotice-api.md) · [All operations](https://skmtc.dev/botnotice/apis/botnotice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/botnotice/apis/botnotice-api/revisions/33724fe6eab9?raw)
