The sub-apps yours declares, as one person stands with them
OpenAPI JSONconst url = 'https://api.eu.apigami.com/v1/apps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/subapps';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.eu.apigami.com/v1/apps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/subapps \ --header 'Authorization: Bearer <token>'What apigami.subapps() reads. A page of app (its page token from its page’s origin, or /__apigami/v1/… of its own address) or the run token of one of its actions, for a person: every sub-app the version serving the page declares in x-apigami.subapps (the run’s own version for an action), with whether that person accepted an optional one under the application they connected to. Another team’s private application is left out. no-store.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The application of the page or of the run token.
Responses
Section titled “Responses”The sub-apps that version declares.
object
object
Whether the person accepted it under the application they connected to; always true for a mandatory one. Until then an optional one answers 403 subapp_not_accepted: open it with apigami.open on a click.
Whether one of its sites goes through the browser: on a phone, say it needs a computer with Chrome.
A site it declares, as its manifest declares it.
object
The public address of its logo; null when its author set none.
Its colour as #rrggbb, dark enough for white text; null when its author set none.
The pairs its production declares in x-apigami.metadata, as written, {} without any: a convention between its author and yours, which Apigami never reads.
object
Examplegenerated
{ "subapps": [ { "app_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "is_optional": true, "is_accepted": true, "needs_browser": true, "domains": [ {} ], "logo_url": "example", "brand_color": "example", "metadata": { "additionalProperty": "example" } } ]}A run that serves nobody.
object
Present and true when the approval window is open and the user has not answered within 45 s.
On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.
On no grant: the page of the user’s Apigami space where they allow it again; send them there.
On consent requested, in place of permission: the bare app_id of each application whose terms or subprocessors the user has yet to agree to, unlike the boxes of GET /apps/{app_id}. Only the connect page asks it: send them to connect_url, or to one of your pages.
With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.
Example
{ "error": "person required"}A run token unknown, ended or expired (bad run token), or a page token unknown, expired or sent from another origin than its page’s (bad page token).
object
Present and true when the approval window is open and the user has not answered within 45 s.
On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.
On no grant: the page of the user’s Apigami space where they allow it again; send them there.
On consent requested, in place of permission: the bare app_id of each application whose terms or subprocessors the user has yet to agree to, unlike the boxes of GET /apps/{app_id}. Only the connect page asks it: send them to connect_url, or to one of your pages.
With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.
Example
{ "error": "bad page token"}app is not the application of the page or of the run token.
object
Present and true when the approval window is open and the user has not answered within 45 s.
On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.
On no grant: the page of the user’s Apigami space where they allow it again; send them there.
On consent requested, in place of permission: the bare app_id of each application whose terms or subprocessors the user has yet to agree to, unlike the boxes of GET /apps/{app_id}. Only the connect page asks it: send them to connect_url, or to one of your pages.
With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.
Example
{ "error": "not found"}