API explorerPay APIsData APIs

Theme switcher

Create Consent

Creates a new AIS consent for accessing banking account information. Returns a web URL where the end-user can authenticate with their bank and authorize access.

The consent can be configured with various options including:

  • Scope of data access (accounts, balances, transactions)
  • Consent validity period
  • Provider filtering
  • Webhook notifications
  • Custom redirect URLs

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
ais_methodobject

Filter criteria for selecting AIS methods/providers

Show child attributes

consentobject Required

Show child attributes

optionsobject

Show child attributes

Response

200
Object
Consent created successfully

Response Attributes

request_idstring

Unique identifier for the API request (from x-request-id header)

created_atstring

Timestamp when the consent was created

expires_atstring

Timestamp when the consent link expires (based on expires_in option)

consent_validity_daysinteger

Number of days the consent remains valid for data access after authorization

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

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

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