This is a preview version of the API intended for early testing and integration. Preview versions are not stable and may include breaking changes before general availability.
Create consent
Create a new PSD2_AIS (Account Information Service) consent for the authenticated external user.
Request
Header Parameters
Specifies the API version to use. Must match the version of the endpoint you are targeting.
2026-04-01.Request Body
Company identifier.
The login method to use for authentication. Required when SWEDISH_BANKID parameter is provided.
Consent creation parameters.
Properties below are from the Psd2AisConsentParameter subtype. View the full schema for full details.
Structured PSD2 consent definition for Account Information Service scopes.
Explicit account identifiers granted for PSD2_AIS (Account Information Service) access. If accountIds are not set, the consent will apply to all PSU accounts available at the ASPSP.
Whether balances can be read.
PSU (Payment Service User) IP address (IPv4 or IPv6 format)
Locale string (format: xx-yy, e.g., 'sv-SE', 'en-GB', 'no-NO'), recommended for proper localization of consent flows and user communications.
Whether transactions can be fetched.
Requested expiration date for the consent (format: YYYY-MM-DD). The ASPSP may enforce a shorter expiration period than requested.
Responses
Consent successfully created.
Body
Company identifier.
Unique identifier for the consent.
Expiration timestamp for the consent.
Requested consent scopes.
Properties below are from the Psd2AisConsentScope subtype. View the full schema for full details.
PSD2 AIS consent scope with account access details
Bank account identifiers this consent grants access to. When absent, the consent covers all accounts available at the bank.
Whether this consent grants permission to read account balances.
Whether this consent grants permission to fetch account transactions.
Scope type discriminator.
PSD2_AIS.Current status of the consent.
INITIATED, AWAITING_AUTHORIZATION, AUTHORIZED, REVOKED, EXPIRED or FAILED.curl https://api.insurely.com/consents \
-H "Authorization: Bearer <jwt-token>" \
-H "Content-Type: application/json" \
-d '{
"company": "se-nordea",
"parameters": [
{
"accountIds": [
"SE1234567890"
],
"balances": true,
"psuIpAddress": "192.168.1.1",
"psuLocale": "sv-SE",
"transactions": true,
"type": "PSD2_AIS_CONSENT",
"validUntil": "2026-12-31"
}
]
}' \
-X POST{
"company": "se-nordea",
"consentId": "550e8400-e29b-41d4-a716-446655440000",
"expiresAt": "2026-12-31T23:59:59Z",
"scope": {
"accountIds": [
"SE1234567890"
],
"balances": true,
"transactions": true,
"type": "PSD2_AIS"
},
"status": "INITIATED"
}