Create an application
OpenAPI JSONconst url = 'https://api.eu.apigami.com/v1/apps';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","visibility":"private","redirect_uris":[],"avatar_file_id":null}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.eu.apigami.com/v1/apps \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "visibility": "private", "redirect_uris": [], "avatar_file_id": null }'Creates an application in your team. It holds no code and reserves no public name: the slug comes from the manifest of a version, at its first deploy. Requires a confirmed email.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
What a person sees when they connect to it.
private: your team only. unlisted: anyone with the link, published at once. public sends each publication to review first. The person’s decision.
Only to reuse the logo of another application of your team, its avatar_file_id. A logo of its own is set with the MCP tool app_settings.
Responses
Section titled “Responses”The application. Its id is the app_id every other route takes.
object
The app_id.
Example
{ "visibility": "private"}The person’s email is not confirmed yet.
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": "verify your email before creating an app"}