Get started with STEF APIs
Follow this guide to activate your account, create your application, subscribe to APIs, and call them securely.
Follow this guide to activate your account, create your application, subscribe to APIs, and call them securely.
The STEF API portal lets you subscribe to STEF APIs through personal consumer applications, or applications shared within a team.
The password must be renewed every 200 days; you will be notified of this requirement when signing in to the portal.
To create a consumer application shared with your team, you need to request the creation of a team from your STEF IT contact.
To consume an API, you must first have a consumer application. Creating one generates a credential, the identifier of your application when making calls.
A consumer application can subscribe to one or more APIs depending on its needs.
Use the APIs menu to browse the catalogue of available STEF APIs.
Navigate to the products that interest you to view the technical developer documentation, which presents for each API:
To subscribe to an API:
The subscription will then need to be approved by STEF; contact your STEF IT contact for this.
Since an application can subscribe to several APIs, repeat the subscription process for each API you want to use.
To view an application's subscriptions, click your profile in the top-left corner, then Applications, then the name of your application. On the APIs tab, shown automatically, you will find the list of your subscriptions and their status.
You can also request a subscription to other APIs directly from this menu by clicking + API.
All STEF API calls pass through the STEF API Gateway to enforce access security rules, protect the backend services of the STEF information system, and collect invocation statistics.
The API Gateways are accessible via the following URLs:
To consume an API and comply with access security rules, add the HTTP header X-STEF-Client-Id to the request, set to the credential of your consumer application.
For each API published on the platform, the technical developer documentation provides code examples for invoking the API Gateway from various languages: Shell, Python, Node.js, JavaScript, Go, Java, C#, and Ruby.
curl -X GET "https://api.stef.com/v1/transport/orders" \
-H "X-STEF-Client-Id: <YOUR_APPLICATION_SECRET>" \
-H "Content-Type: application/json"
In addition to the code examples, the technical developer documentation provides forms for invoking the APIs directly from the portal, interactively, using the Try it! button.