Skip to main content
POST
/
abdm
/
v1
/
consents
/
deny
cURL
curl --request POST \
  --url https://api.eka.care/abdm/v1/consents/deny \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "reason": "<string>"
}
'
{
  "code": 123,
  "error": "<string>",
  "source_error": {
    "code": "<string>",
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The API requires a Bearer token (JWT) for authentication.

Headers

X-Pt-Id
string

Eka User ID (OID)

X-Partner-Pt-Id
string

Partner User ID

X-Hip-Id
string

Partner HIP ID

Query Parameters

oid
string

OID is used to Identify the user. OID is used to Identify the user.

Body

application/json
id
string
required

Unique identifier of a consent, also called the consent ID.

reason
string

Users reason for denial in plain text

Response

No Content