Allow an application to call another one
OpenAPI JSONconst url = 'https://api.eu.apigami.com/v1/apps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/dependencies/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"uses_production_version":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.eu.apigami.com/v1/apps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/dependencies/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "uses_production_version": true }'Authorises app to call the actions of dependency, named by its app_id. Nothing is deployed: the next call is allowed, and DELETE on the same path takes effect at once, on a run already in flight too. Another team’s application must be published and reviewed, and never private. The credential of a member of the team that owns app: a personal access token, a dashboard session, an agent token or the OAuth token of their MCP client.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
Call its published version, or its latest one, which only makes sense for an application of your own team.
Responses
Section titled “Responses”The authorisation as it now stands.
object
The application authorised, dependency.
Example
{ "visibility": "private"}Another team’s private application.
object
Present and true when the approval window is open and the user has not answered within 45 s.
Example
{ "error": "Brick is private: only its own group may depend on it"}Unknown, or an application of another team as app.
object
Present and true when the approval window is open and the user has not answered within 45 s.
Example
{ "error": "not found"}Not published and reviewed, or a loop, spelled out.
object
Present and true when the approval window is open and the user has not answered within 45 s.
Example
{ "error": "sub-application not published"}