GET
/
abdm
/
v1
/
requests
curl --request GET \
  --url https://api.eka.care/abdm/v1/requests \
  --header 'Authorization: Bearer <token>'
{
  "authorizations": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "duration": {
        "from": "2023-11-07T05:31:56Z",
        "to": "2023-11-07T05:31:56Z"
      },
      "hiu": {
        "id": "INXXXXX",
        "name": "Apollo Hospital"
      },
      "id": "<string>",
      "purpose": {
        "code": "<string>",
        "text": "<string>"
      },
      "requester": {
        "name": "Dr John"
      }
    }
  ],
  "consents": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "duration": {
        "from": "2023-11-07T05:31:56Z",
        "to": "2023-11-07T05:31:56Z"
      },
      "hiu": {
        "id": "INXXXXX",
        "name": "Apollo Hospital"
      },
      "id": "<string>",
      "purpose": {
        "code": "<string>",
        "text": "<string>"
      },
      "requester": {
        "name": "Dr John"
      }
    }
  ],
  "subscriptions": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "duration": {
        "from": "2023-11-07T05:31:56Z",
        "to": "2023-11-07T05:31:56Z"
      },
      "hiu": {
        "id": "INXXXXX",
        "name": "Apollo Hospital"
      },
      "id": "<string>",
      "purpose": {
        "code": "<string>",
        "text": "<string>"
      },
      "requester": {
        "name": "Dr John"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

status
enum<string>
required

status of the request

Available options:
requested,
granted,
expired,
denied,
revoked
type
enum<string>
required

Specifies the type of request being queried.

Available options:
consent,
subscription,
authorization,
all

Response

200
application/json
OK
authorizations
object[] | null

List of authorizations

consents
object[] | null

List of consents

subscriptions
object[] | null

List of subscriptions