Skip to main content
GET
/
v1
/
consent
/
phone
/
{phone}
/
{brief}
Get consent by phone
curl --request GET \
  --url http://localhost:3000/v1/consent/phone/{phone}/{brief} \
  --header 'X-Bunker-Token: <api-key>'
{
  "status": "ok",
  "consent": {
    "brief": "<string>",
    "message": "<string>",
    "who": "<string>",
    "starttime": 123,
    "endtime": 123,
    "lawfulbasis": "<string>",
    "module": "<string>",
    "referencecode": "<string>",
    "lastmodifiedby": "<string>",
    "created": 123,
    "updated": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.databunker.org/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Bunker-Token
string
header
required

Root access token for Databunker API

Path Parameters

phone
string
required

User phone number

brief
string
required

Consent brief (unique identifier, max 64 chars)

Maximum string length: 64
Pattern: ^[a-z0-9-]+$

Response

Consent retrieved successfully

status
enum<string>
required
Available options:
ok
Example:

"ok"