API explorerPay APIsData APIs

Theme switcher

Get Consent

Body Parameters

client_idstring Required

API client identifier

Max length
128
client_secretstring

API client secret for authentication. Required for internal (non-OAuth2) authentication mode (e.g., test-only). Not required when using OAuth2 (Bearer token) authentication.

Max length
128
consent_idstring Required

Consent ID to retrieve

Max length
128

Response

200
Object

Consent details retrieved successfully

Response Attributes

statusstring

Consent lifecycle status:

  • created: Consent created via API, not yet initiated
  • started: Consent flow initiated or reset for retry
  • sca_url_retrieved: SCA URL retrieved from banking provider
  • awaiting_decoupled_authz: User must authorise in their banking app (decoupled flow, e.g. BRD)
  • awaiting_authz: User opened SCA URL (link/wrapped_sca only)
  • authorized: User authentication successful, before data fetch
  • active: Consent active, data persisted to database
  • `expi...
Enum values:
createdstartedsca_url_retrievedawaiting_decoupled_authzawaiting_authzauthorizedactiveexpiredrevokedfailed
... 1 other enums
expires_atstring

Timestamp when the consent authorization link expires (based on expires_in option). After this time, users cannot access the WebUI to complete authorization. This does NOT affect already-active consents.

consent_validity_daysinteger

Number of days the consent remains valid for data access after authorization. When this period ends, the consent is automatically revoked.

authorized_untilstring | null

Timestamp when the data access consent expires and will be automatically revoked (set after user authorizes, calculated from consent_validity_days). After this time, data access is no longer possible.

api_client_appstring

Name of the API client application

consent_idstring

Internal UUID identifier for the consent

web_idstring

Public identifier for the consent (used in web URLs)

web_urlstring | null

URL where the end-user can complete the consent authorization flow. Null for direct_sca type.

request_idstring

Unique identifier for the API request

scopearray

Types of data this consent covers

Enum values:
accountsbalancestransactions

ShowΒ child attributes

ais_methodobject | null

Selected AIS method details (available after method selection)

ShowΒ child attributes

service_providerobject | null

Service provider (bank) details

ShowΒ child attributes

accountsarray

List of account IDs associated with this consent (available after consent is active)

ShowΒ child attributes

latest_completed_jobobject | null

Information about the most recent successfully completed data refresh job

ShowΒ child attributes

400
Object

Validation error or invalid request

Response Attributes

error_idstring Required

Unique identifier for this error instance

request_idstring Required

Request identifier for tracking and correlation

codestring Required

Machine-readable error code for 400 errors:

  • bad_request: Generic validation or request error
  • validation_error: Request payload validation failed
  • invalid_input: Invalid input data provided
  • internal_error: AIS-side unexpected internal error
  • external_api_unavailable: External provider HTTP failure (timeout, connection refused, DNS, etc.). Surfaced as HTTP 400 instead of a gateway 504.
  • external_api_error: External provider returned a structured error during the AIS ...
Enum values:
bad_requestvalidation_errorinvalid_inputinternal_errorexternal_api_unavailableexternal_api_errorcooldown_failedconsent_not_activejob_in_progressmethod_selection_error
... 2 other enums
messagestring Required

Human-readable error message

401
Object

Authentication failed

Response Attributes

error_idstring Required

Unique identifier for this error instance

request_idstring Required

Request identifier for tracking and correlation

codestring Required

Machine-readable error code for 401 errors:

  • unauthorized: Authentication failed or insufficient permissions
Enum values:
unauthorized
messagestring Required

Human-readable error message

404
Object

Resource not found

Response Attributes

error_idstring Required

Unique identifier for this error instance

request_idstring Required

Request identifier for tracking and correlation

codestring Required

Machine-readable error code for 404 errors:

  • not_found: Generic resource not found
  • consent_not_found: Specified consent does not exist
  • job_not_found: Specified job does not exist or outside accessible date range
Enum values:
not_foundconsent_not_foundjob_not_found
messagestring Required

Human-readable error message

Was this section helpful?

POST

/

Select
1

Response

Was this section helpful?
View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot