Skip to content

The sub-apps yours declares, as one person stands with them

OpenAPI JSON
GET
/v1/apps/{app}/subapps
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.

app
required

The application of the page or of the run token.

string format: uuid

The sub-apps that version declares.

Media typeapplication/json
object
subapps
required
Array<object>
object
app_id
required
string format: uuid
name
required
string
is_optional
required
boolean
is_accepted
required

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.

boolean
needs_browser
required

Whether one of its sites goes through the browser: on a phone, say it needs a computer with Chrome.

boolean
domains
required
Array<object>

A site it declares, as its manifest declares it.

object
logo_url
required

The public address of its logo; null when its author set none.

string | null
brand_color
required

Its colour as #rrggbb, dark enough for white text; null when its author set none.

string | null
metadata
required

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
key
additional properties
string
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.

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
permission

On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.

string
Allowed values: emails ai
settings_url

On no grant: the page of the user’s Apigami space where they allow it again; send them there.

string format: uri
terms

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.

Array<string>
connect_url

With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.

string format: uri
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).

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
permission

On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.

string
Allowed values: emails ai
settings_url

On no grant: the page of the user’s Apigami space where they allow it again; send them there.

string format: uri
terms

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.

Array<string>
connect_url

With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.

string format: uri
Example
{
"error": "bad page token"
}

app is not the application of the page or of the run token.

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
permission

On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.

string
Allowed values: emails ai
settings_url

On no grant: the page of the user’s Apigami space where they allow it again; send them there.

string format: uri
terms

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.

Array<string>
connect_url

With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.

string format: uri
Example
{
"error": "not found"
}