Skip to content

Frequently Asked Questions

Components of a request

A typical request sent to our API will look like this:

curl --location --globoff 'https://gateway.prod.gravitee.stadline.tech/resa2-staging/${clientToken}/class_events' \
--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...' \
--header 'x-user-club-id: /demoapi/clubs/1210' \
--header 'x-user-network-node-id: /demoapi/network_nodes/1053' \
--header 'x-gravitee-api-key: xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx'

We can identify the following components:

ComponentDescription
https://gateway.prod.gravitee.stadline.tech/required
The base URL of our API Gateway
demoapirequired
This is the clientToken: the unique identifier of a Resamania client
x-user-club-idrequired
Header containing the IRI of the club for which you want to retrieve/store information
x-user-network-node-idHeader containing the IRI of the network node for which you want to retrieve/store information.

optional
Optional if your client has only one club

required
Required if you work with club chains
x-gravitee-api-keyrequired
Your authentication key for the API Gateway
Bearer ...required
The token generated via an authentication endpoint

I get a 401 Unauthorized error

This error is most commonly returned by our API Gateway and usually indicates a missing x-gravitee-api-key header.

I get a 404 Item not found error

In the vast majority of cases, this error originates from one of the components of your request:

  • Did you correctly include the clientToken in the URL?
  • Are the network headers properly set?
  • Remember that you must provide IRIs and not just IDs (/demoapi/clubs/123 instead of just 123)

I get a 403 api.error.scope.unauthorized-endpoint error

If you're in the sandbox environment: All endpoints are open to you without restriction, so the issue most likely comes from a component of your URL—most likely a missing clientToken.

If you're in production, it means this endpoint is not authorized for you: Please contact our API service.