Gateway Migration
We changed our API gateway in june 2025. If you have been using our APIs before this date, then there are a couple of updates that you will need to do.
What Have Changed
- We have made authentication consistent across all our APIs, which means that all of our APIs are interoperable. We have made the same authentication method and flow, which makes it easy for you to call all our APIs
- We are using OAuth2 Client Credentials Grant Flow with no scopes and form body post method when querying for a token.
What You Need To Do
Update URLs to APIs
Before
- API Url
https://api.schibsted.com/prisjakt/<api-name>
- Token URLs (could differ per API)
- Business Center API
- Partner Search API
- Insights V2 API
After
- API Url
https://api.pj.nu/<api-name>
- Token Url (same for all APIs):
https://auth.pj.nu/oauth2/token
In some cases, the request flow changed
Before
- Authentication and headers could vary per API
- Clients called APIs directly with
client_id
andclient_secret
in headers
After
- Request token from token endpoint
https://auth.pj.nu/oauth2/token
- Do NOT send any
audience
parameter
- Use token in calls to API
- Use same token until it expires, then refresh it
- Send token as header
Authorization: Bearer <token>
- Do NOT send any extra headers such as
client_id
orx-api-key
when calling the API. The authorization header with bearer token is enough.