Integrations and scopes
An integration is a program that calls the Management API. Its scopes decide what it is allowed to do. An integration can be limited to one product.
Create one integration for each program, such as your billing backend or a CI job. Create integrations in the dashboard. The Management API cannot create or change integrations.
Integration properties
| Property | Description |
|---|---|
| Name | The name of the integration. |
| Description | A note about the integration. This property is optional. |
| Product | The one product that the integration can reach. Without a product, the integration can reach every product in your account. This property is optional. See Product. |
| Access | The scopes of the integration. See Scopes. |
| API keys | The secret keys that the program sends. An integration can have several keys. See Authentication. |
Scopes
A scope allows one kind of access to one resource. A scope is <resource>:read or <resource>:write, such as licenses:read or releases:write.
- An endpoint that reads requires the read scope of its resource.
- An endpoint that creates, changes or deletes requires the write scope of its resource.
- A write scope includes the read scope of the same resource. An integration with
licenses:writecan also read licenses. - Some resources have only a read scope.
Set the access of each resource on the integration in the dashboard. The dashboard lists every resource that has scopes.
Each endpoint page names the scope that it requires. Get the current integration requires no scope. Its answer lists every scope of the integration, together with each read scope that a write scope includes.
A request without the required scope answers with the status 403. See Errors.
Product
An integration without a product can reach every product in your account. An integration with a product can reach only that product. To reach two products, create two integrations.
Get the current integration returns the product of the integration in the product_id field.
Deletion
Deleting an integration deletes all of its API keys. Every request with one of those keys then answers with the status 401.
A product cannot be deleted while an integration is limited to it. Delete the integration or change its product first.