API explorerPay APIsData APIs

Theme switcher

Get Consent

Retrieves detailed information about an existing AIS consent, including:

  • Current status (created, completed, failed, etc.)
  • Associated accounts (if consent is completed)
  • Service provider information
  • Expiration details

This endpoint returns successfully for any existing consent, regardless of its current status (e.g. created, active, revoked, expired, failed).

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_authz: User opened SCA URL (link/wrapped_sca only)
  • authorized: User authentication successful, before data fetch
  • active: Consent active, data persisted to...
Enum values:
createdstartedsca_url_retrievedawaiting_authzauthorizedactiveexpiredrevokedfailedsuspended
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

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.

Nullable:
True
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

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

Nullable:
True
request_idstring

Unique identifier for the API request

scopearray

Types of data this consent covers

Enum values:
accountsbalancestransactions

Show child attributes

ais_methodobject

Selected AIS method details (available after method selection)

Nullable:
True

Show child attributes

service_providerobject

Service provider (bank) details

Nullable:
True

Show child attributes

accountsarray

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

Show child attributes

latest_completed_jobobject

Information about the most recent successfully completed data refresh job

Nullable:
True

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
  • unprocessable_entity: Valid request but cannot be processed
  • cooldown_failed: Data refresh cooldown period not yet elapsed
  • consent_not_active: Consent is not usable...
Enum values:
bad_requestvalidation_errorinvalid_inputunprocessable_entitycooldown_failedconsent_not_activemethod_selection_errormethod_input_validation_errorlink_expired
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?

What made this section unhelpful for you?

POST

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?

View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot