One of the organisation's integrations
curl --request GET \ --url https://api.whatsbuilt.fi/v1/integrations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The integration
An integration as the admin pages and /v1 show it.
object
The integration’s id, its OAuth client_id.
Its name.
What it is for.
Its scopes.
Whether it is on every project of the organisation, new ones included.
The project role its scopes give it.
active, disabled or revoked.
Who created it.
When it was created.
When its token was last used.
When it was disabled.
When it was revoked.
Its calls in the last 24 hours.
The organisation’s own projects it is on.
Projects of other organisations whose project admins added it.
A project of another organisation whose project admin added the integration (spec 056 §16, 5b).
object
The project.
The project’s name.
The organisation that owns the project.
The role its project admin gave.
When the integration joined it.
Its keys, oldest first.
An integration’s public key.
object
The key’s id: its RFC 7638 thumbprint.
ES256 or RS256.
The RFC 7638 thumbprint.
object
When it was registered.
When it expires: a year after it was registered.
When it was revoked.
Example
{ "project_role": "viewer", "status": "active", "other_projects": [ { "project_role": "viewer" } ], "keys": [ { "alg": "ES256" } ]}Invalid body or parameters
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}Missing, malformed, expired or revoked token
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}INSUFFICIENT_SCOPE; INSUFFICIENT_ROLE; INTEGRATION_SELF when the integration acts on itself or on an integration up its creator chain; SCOPE_NOT_HELD or PROJECTS_NOT_HELD when the integration created, changed, given a key or enabled would hold a scope or project the caller lacks; INTEGRATION_ON_OTHER_PROJECTS for a key or enable on an integration another organisation’s project admitted; PUBLIC_API_DISABLED
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}No such integration in the organisation
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}INTEGRATION_REVOKED; INTEGRATION_KEY_LIMIT; INTEGRATION_KEY_IN_USE
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}RATE_LIMITED; wait for Retry-After seconds
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}