Skip to content

Allow an application to call another one

OpenAPI JSON
PUT
/v1/apps/{app}/dependencies/{dependency}
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.

app
required
string format: uuid
dependency
required
string format: uuid
Media typeapplication/json
object
uses_production_version

Call its published version, or its latest one, which only makes sense for an application of your own team.

boolean
default: true

The authorisation as it now stands.

Media typeapplication/json
object
app_id
required

The application authorised, dependency.

string format: uuid
name
required
string
visibility
required
string
Allowed values: private unlisted public
uses_production_version
required
boolean
created_at
required
string format: date-time
Example
{
"visibility": "private"
}

Another team’s private application.

Media typeapplication/json
object
error
required
string
consentPending

Present and true when the approval window is open and the user has not answered within 45 s.

boolean
Example
{
"error": "Brick is private: only its own group may depend on it"
}

Unknown, or an application of another team as app.

Media typeapplication/json
object
error
required
string
consentPending

Present and true when the approval window is open and the user has not answered within 45 s.

boolean
Example
{
"error": "not found"
}

Not published and reviewed, or a loop, spelled out.

Media typeapplication/json
object
error
required
string
consentPending

Present and true when the approval window is open and the user has not answered within 45 s.

boolean
Example
{
"error": "sub-application not published"
}