Step 3: obtain an OAuth2 token

Obtain an OAuth2 token from the eConnect Identity Server (Client Credentials), use it as a Bearer token, and renew it.

Every PSB call requires a Bearer token from the Identity Server. Tokens are valid for 3600 seconds by default.

Client Credentials (recommended)
POST /connect/token HTTP/1.1
Host: accp-identity.econnect.eu
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials
&client_id=your-client-id
&client_secret=your-client-secret
&scope=ap
curl
curl -s -X POST https://accp-identity.econnect.eu/connect/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id=your-client-id" \
  -d "client_secret=your-client-secret" \
  -d "scope=ap"
Success response
{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_in": 3600,
  "token_type": "Bearer",
  "scope": "ap"
}
Use the token
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...

Send this header with every request to accp-psb.econnect.eu. Invalid or expired → 401 Unauthorized.

Renew

There is no separate refresh-token flow for Client Credentials: request a new token (for example after ~3500 s) so calls do not fail mid-batch.

Other flow

Do rights run through an end-user account? Use Resource Owner Password Credentials, fully explained in Authentication.

Next step

First API call (GET /me)