Debricked APIs
Expand your use of Debricked with the help of APIs.
Last updated
Was this helpful?
Expand your use of Debricked with the help of APIs.
Last updated
Was this helpful?
Debricked is an API-first service, allowing for all actions inside the UI to be scripted. This allows you to integrate Debricked service into your code, CI pipelines, and more.
All users with the role with the API access scope have access to Debricked open API. This is also the API used by the .
Base URL for API: https://debricked.com/api
Current version URL: https://debricked.com/api/1.0
The API uses JWT-tokens for authentication.
In order to get a JWT-token you need to provide your username and password to: https://debricked.com/api/login_check
Using curl, the call would look like this:
If successful, the response will contain your token:
Note: In case your username and/or password contains special characters, you need to url encode and surround it by quotes to ensure that it works as expected. See example:
If you have added an access token, you can use it to get a short-lived JWT token by sending the access token to:
https://debricked.com/api/login_refresh
Using curl the call would look like this:
The JWT-token has a lifetime of about an hour. If the JWT-token is invalid (e.g. if it has expired) a 401 status code will be returned. You should therefore implement a way of automatically getting a new token every time you receive a 401 status code from any API call.
When you have your token you need to pass it to the Authorization HTTP header with the value Bearer YOUR_VERY_LONG_TOKEN on each API call.
For example, using curl:
The following rate limits apply:
No account: 100 requests per hour (only applies for the Open Source Select API)
Free account: 500 requests per hour per code contributor (up to a maximum of 5 000 requests per hour)
Premium/Enterprise account: 5000 requests per hour per code contributor
If you require a higher rate limit, please contact the sales team.
Check out our latest training webinar and learn the basics of working with Debricked CLI and API: