v1.0.0
OpenAPI 3.1.0

PSD2 Authoriser

Issues encrypted access tokens for the PSD2 platform. Token endpoints require x-api-key; signed token endpoints also require a request signature in Authorization. GET /open-banking/sandbox/auth/show uses Authorization: Bearer , without an API key or request signature. Application errors have plain text or empty bodies. API Gateway errors are separate.

Server:https://api.acc.ockto.cloud

Customer sandbox via OneAPI

No authentication selected
Client Libraries

auth (Collapsed)

​

Encrypted access token using a signed request

​

Issues an encrypted access token after verifying the request signature. Send Authorization: Signature ... and x-api-key. Sign the request target, Date, Content-Type, Accept and a digest computed from the body. V2 supports SHA-256 and SHA-512; the legacy V1 format is also accepted. Signature verification happens before JSON parsing. Malformed JSON with a valid signature currently returns 500.

Headers

  • Correlation ID for tracking requests across multiple services.

  • Request signing time. Must be a valid date within five minutes of the server time, in either direction.

  • Media type included in the signed data. Required for V2 signatures; use application/json. Legacy V1 also accepts an omitted header by signing the literal value undefined.

Body·

required
application/json

Exactly one of userId or tenantUserId must be nonempty. An empty value for the other field is accepted. In multi-tenant mode, userId must have the configured tenantId_tenantAppId_ prefix; tenantUserId is prefixed by the service. In single-tenant mode either value is used unchanged. Unknown fields are rejected.

JSON request for an encrypted access token. Exactly one of userId or tenantUserId must be nonempty. An empty alternative is accepted. Identity validation runs after schema validation.

  • Tenant user id associated with the JWT token. Typically as used within the tenant's system.

  • User ID. In multi-tenant mode it must start with the configured tenantId_tenantAppId_ prefix. In single-tenant mode it is used unchanged.

Responses

  • application/json
  • */*
  • */*
  • API Gateway rejected the API key or access policy before invoking the handler.

  • */*
  • Other errors generated by API Gateway or the integration. These are not application error objects.

Request Example for post/auth/open-banking/sandbox/token
curl https://api.acc.ockto.cloud/auth/open-banking/sandbox/token \
  --request POST \
  --header 'Date: Wed, 21 Oct 2026 12:00:00 GMT' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Basic username:password' \
  --header 'x-api-key: YOUR_SECRET_TOKEN' \
  --data '{
  "userId": "companyA_app1_user674638475",
  "tenantUserId": "user674638475"
}'
{
  "token": "string",
  "user_id": "string",
  "tenant_user_id": "string",
  "tenant_id": "string",
  "tenant_app_id": "string",
  "role": "string"
}

Tenant and app identity

​

Returns tenantId and tenantAppId from the bearer access token. No API key or request signature is required. The handler returns 200; authentication failures are generated by API Gateway or its authorizer.

Responses

  • application/json
  • API Gateway rejected a missing bearer token.

  • The authorizer denied the bearer token.

  • Other errors generated by API Gateway or the integration. These are not application error objects.

Request Example for get/open-banking/sandbox/auth/show
curl https://api.acc.ockto.cloud/open-banking/sandbox/auth/show \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "tenantId": "string",
  "tenantAppId": "string"
}

Models

We have a new documentation site with more integration guidance & a rich knowledge base Visit the new Open Banking documentation