The manifest
MarkdownEvery application starts from one file, manifest.json. It names the actions, the sites the
application reaches and the name it goes by.
The project and its manifest
Section titled “The project and its manifest”A project is a directory. One file is required, manifest.json at its root: an OpenAPI 3.1 document
that describes your actions, plus an x-apigami block that tells Apigami how to run them.
{ "openapi": "3.1.0", "info": { "title": "Grocery", "description": "Search a grocery site and fill a basket, using the shopper's own session.", "version": "1.0.0" }, "x-apigami": { "manifest_version": 2, "slug": "acme-basket", "entrypoint": "main.ts", "domains": [{ "domain": "example.com", "via": "extension" }], "env": [ { "name": "CURRENCY", "description": "ISO 4217 code shown in results", "secret": false } ] }, "paths": { "/search": { "post": { "operationId": "searchProducts", "summary": "Search products", "description": "Finds products by name and returns their price and reference.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": ["query"], "properties": { "query": { "type": "string", "description": "What to look for" }, "limit": { "type": "integer", "minimum": 1, "maximum": 50, "default": 10 } } } } } }, "responses": { "200": { "description": "The products found", "content": { "application/json": { "schema": { "type": "object", "required": ["products"], "properties": { "products": { "type": "array", "items": { "type": "object", "required": ["reference", "name", "price"], "properties": { "reference": { "type": "string" }, "name": { "type": "string" }, "price": { "type": "number", "description": "Unit price, in the currency of CURRENCY" } } } } } }, "example": { "products": [{ "reference": "7412", "name": "Comté 18 mois", "price": 4.35 }] } } } } } } }, "/basket": { "post": { "operationId": "readBasket", "summary": "Read the basket", "description": "Returns what is in the shopper's basket right now.", "responses": { "200": { "description": "The basket", "content": { "application/json": { "schema": { "type": "object", "required": ["lines", "total"], "properties": { "lines": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string" }, "quantity": { "type": "integer" } } } }, "total": { "type": "number" } } } } } } } } } }}Two version numbers live here and they are not the same thing. x-apigami.manifest_version is the
version of this format, and it is 2; info.version is the version of your application, a
label you choose and that nothing depends on. What identifies a version to Apigami is its
version_id.
summary, description and responses are optional in OpenAPI and required here. They are what
another developer — and another developer’s assistant — reads to decide whether to reuse your work,
and a sub-app nobody can read is a sub-app nobody reuses. Say in description what the action is worth
to whoever calls it, not how it is implemented.
What an action takes and answers has to have a shape. A success response is any 2xx code, 201
included, or 2XX, or a 3xx that only redirects (Actions); the lowest numbered 2xx code it declares, else its 2XX, needs a content naming its media type, and where that media type is application/json, a schema of what comes back; the
same holds for the requestBody of an action that takes one. A description alone is refused:
catalog_read hands each action of your manifest to another group’s assistant as its whole contract, and a sentence
where a shape was promised means one call made blind to find out what the fields are called. Not
everything is JSON — an action that answers a PDF, a CSV or raw bytes declares
application/pdf, text/csv or application/octet-stream with no schema at all, and that is
enough. An example is never required and is worth writing wherever the shape alone does not say
what a good answer looks like.
x-apigami.public_paths is no longer needed: the --staging address serves every path to anyone, and a
manifest that still lists it is accepted and ignored.
The applications yours calls are in the manifest too, in x-apigami.subapps
(The applications it calls), and so is everything else a version may do: changing any of it is
deploying a version.
Actions: methods, paths and who may call them
Section titled “Actions: methods, paths and who may call them”Each operation of paths is an action, served at your application’s address on its method and its path
(Calling an application at its address). Any method
OpenAPI names may be used but trace, and a path may be a template, as in any OpenAPI:
"/v3/grants/{grant_id}/messages": { "get": { "operationId": "message.list", "parameters": [{ "name": "grant_id", "in": "path", "required": true, "schema": { "type": "string" } }], … }}| Code | Why |
|---|---|
path_template_partial_segment |
A {name} that is not a whole segment, such as /files/{name}.json |
path_parameters_mismatch |
A {name} without its parameters entry in: path, required: true, or such an entry without its {name} |
operation_paths_collide |
Two operations of the same method whose paths differ only by the names of their parameters, or by a trailing slash |
method_not_served |
A trace operation |
redirect_without_location |
A 3xx success that does not declare the Location header, or declares a content |
templated_action_not_internal |
A cron, a queue, a subscription, a settings action or an action marked is_mcp_tool on a templated path: each runs one literal path |
mcp_tool_open_action |
An action marked is_mcp_tool and listed in open_actions: a tool of the app’s MCP server runs for a person, an open action never receives one |
mcp_tool_json_only |
An action marked is_mcp_tool that is a GET or a HEAD, or whose body is not application/json with an object schema held in the manifest: declare it as POST with such a body |
mcp_tool_name |
An action marked is_mcp_tool whose tool name, its operationId with each . turned into _, holds another character than letters, digits, _ and -, exceeds 48 characters, or is already another tool’s |
A success may be a 3xx that declares Location and no content, for an action that only redirects. head
and options declared are served as written; without them, HEAD runs the get of that path, and OPTIONS
reaches your code with no credential, for its CORS.
x-apigami.open_actions lists the operationIds anyone may call without a credential: a public form, a
payment provider’s notification, a health check called from outside. Such an action serves nobody, whoever
calls it, and gets no X-Apigami-Run: it calls Apigami back with env.APIGAMI_KEY. Every other declared path
answers only to a credential. GET and POST of one path are two operations, listed each by its name.
Tools of the app’s MCP server
Section titled “Tools of the app’s MCP server”An action you mark becomes a tool of the app’s MCP server, the server Apigami generates for the people who
use your application: they add its address to their own AI, sign in with their Apigami account, and that AI
calls the action for them. The mark is an x-apigami object on the operation, two booleans and nothing else:
"/contact/list": { "post": { "operationId": "contact.list", "summary": "List contacts", "description": "Use to find a contact by name, email or company. Returns 50 at most, most recently updated first.", "x-apigami": { "is_mcp_tool": true, "is_read_only": true }, "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "query": { "type": "string" }, "cursor": { "type": "string" } } } } } }, "responses": { "200": { "description": "The contacts found", "content": { "application/json": { "schema": { "type": "object", "properties": { "contacts": { "type": "array", "items": { "type": "object" } }, "next_cursor": { "type": ["string", "null"] } } } } } } }} }is_mcp_tool: the action is a tool. Without it, the action stays out of the server.is_read_only: the action changes nothing. The person’s AI runs such a tool freely and asks them to confirm any other, so set it on every action that only reads, and leave it out, which meansfalse, on one that writes, sends or deletes.
| The tool’s | Comes from |
|---|---|
name |
The operationId, each . turned into _: contact_list |
title |
The summary |
description |
The description, handed to the AI as your words |
inputSchema |
The schema of the application/json body, its $ref to the manifest resolved; without a body, { "type": "object" } |
annotations.readOnlyHint |
is_read_only |
The server checks each call’s arguments against inputSchema before your action runs: arguments that do not fit
come back to the AI as an error naming each field to fix, and your action is not called. A top-level field set to
null counts as absent, and your action still receives it as sent. format, pattern and uniqueItems are left
for your action to check.
The schema of your success answer, the application/json of the 2xx response when it is an object, travels with
the tool in _meta["apigami/outputSchema"], never as MCP’s outputSchema. Apigami’s assistant types its scripts by it
and refuses an answer that breaks it, so declare the shape your action really answers, or none. The AI reads its
field descriptions too.
Write the description for the AI that chooses the tool. The person’s AI reads it when it decides what to
call: say when to call the action and what the person gets, with no HTTP status, header or internal caller.
The server answers at https://api.eu.apigami.com/mcp/{slug}, never at a domain of your own, once the
version in production marks at least one action. app_publish and app_status give the address and the
sentence to hand your users; app_version_write lists the tools a version will offer.
A tool call runs the action on production for the person signed in, who must be connected to your application
itself and not only to one that calls it. Someone not connected yet is taken through your application’s connect
screen, with your logo and brand colour, when they add the address to their AI, then brought back to authorize it:
no connect link to send first. The arguments are its JSON body, and x-apigami-user-ref names the
person as on a call from a page
(Who is behind a request). A JSON object
your action answers reaches the AI as it is, and a status of 400 or more as an error. Past 30 seconds the AI is
told the action is still running, and never reads its answer; past 64 KiB, that it succeeded with too much to
show. An action that reaches a site through the person’s browser needs one of theirs online: without one it
still runs, its call to the site answers 403 no install in this run, and when the action then fails the AI
is told to have the person open their browser. An action that only reads your database serves a phone as well.
What the validation refuses of a marked action is in the table above: mcp_tool_open_action,
mcp_tool_json_only, mcp_tool_name and templated_action_not_internal; any other key in an operation’s
x-apigami is invalid_manifest.
The tools of a sub-app. Your application’s MCP server also offers the tools of a sub-app you declare with
"is_mcp_exposed": true in x-apigami.subapps: the actions its
production marks, under their own names, called by your application for the person. Only the sub-apps your
own version exposes, never theirs; a server with no tool of your own still answers when an exposed sub-app
has one. Each person sees the tools of the sub-apps they reach: an optional one once they accepted it from one
of your pages, after which they reconnect the server in their AI. The list follows the sub-app’s
publications with no deployment of yours, and app_status gives the tools served, sub-app by sub-app.
"mcp_excluded_tools": ["message_send"] on the same entry leaves out the tools your application does the work of
itself; the sub-app’s own server keeps them.
catalog_read marks the actions of an application that are tools.
Two tools of one name cannot share a server. Writing or deploying a version refuses it (mcp_tool_collision), and
"mcp_tool_prefix": "sms" on the sub-app’s entry lifts it: its tools become sms_message_send. When a sub-app
publishes a name already taken after your version was written, your own tool keeps the name, and a name two
sub-apps hold is offered by neither, with no error for the person: app_status names both until you set a
prefix on one and deploy.
Who may frame your pages: x-apigami.embeddable_on
Section titled “Who may frame your pages: x-apigami.embeddable_on”The exact https:// origins where a page of the version may be shown in a frame, such as
["https://www.example.com"], 20 entries at most, with no path and no wildcard; without it, none
(embeddable_origin_invalid for anything else). An origin of Apigami’s own is never accepted: the side panel frames its pages without it
(Who may frame your pages).
One entry is not an origin: the reserved word "apigami", lowercase, as in ["apigami"] or
["apigami", "https://www.example.com"]. A sub-app writes it to let every application that declares it as a
mandatory sub-app frame its pages, at that application’s own addresses and on the sites that application lists,
without listing any of them
(Inside the applications that declare yours).
It adds nothing to the frames of an application nobody declares.
Domains: via extension or direct
Section titled “Domains: via extension or direct”x-apigami.domains lists the sites your application talks to, each with how it reaches them:
"via": "extension": through the person’s browser, with their session, byrequest.fetchor atabs.*operation. The person approves it when they connect, or in a consent window at the first call. An operation your code sends on a domain not declared this way is refused before any window opens:403 … is not a domain this application declares as reached through the browser. A side panel shows only on such a domain."via": "direct": your server calls the site itself, withfetchand its own credentials, an API key inx-apigami.envfor instance, never the person’s session. No browser, no consent window.
Only extension is enforced when your code runs: Apigami does not filter what your server fetches,
so a direct declaration is not required for the code to work. Declare every site your server calls
anyway: the connect page lists it, « Without your browser », so the person sees where their data goes
before connecting, catalog_read shows it to whoever considers reusing your application, and an
application that uses yours shows it in turn. When every domain, yours and those of the applications
you use, is direct, a person connects without attaching a browser.
Declare the site’s own domain, example.com, not www.example.com. A domain is a bare name,
lowercased: a scheme, a path, a port, a wildcard such as *.example.com or a trailing dot is refused
with Use a bare domain, such as example.com. The person’s approval of example.com covers it and
every subdomain, www.example.com and api.example.com included; an approval of www.example.com
covers www.example.com and its own subdomains, but neither example.com nor api.example.com. Pass the
declared string as params.domain in every call, and the host you want in url:
{ "op": "request.fetch", "params": { "domain": "example.com", "url": "https://www.example.com/news" } }params.domain must equal a declared domain exactly: with example.com declared, "domain": "www.example.com" answers 403 www.example.com is not a domain this application declares as reached through the browser. The url must be https:// on that domain or one of its subdomains: outside it
the call answers 502 url is outside the granted domain example.com: …, and a redirect that leaves it
502 redirected outside the granted domain example.com: ….
Permissions: emails
Section titled “Permissions: emails”x-apigami.permissions lists what your application may do beyond its sites: "emails", "ai" and
"identity".
With "emails", your code may email the people connected to it with the emails.send operation, by their
user_ref, without ever learning their address.
"x-apigami": { "permissions": ["emails"] }It belongs to the version that declares it: production’s for everyone, the latest version’s when a member of your group previews an email or sends one to themself. Adding or removing it takes a deployment; an application without hosted code declares it in a version made of its manifest alone. Each person grants it: on the connect page, the box of your emails, which they must tick to continue, grants it, and a person connected before a version that adds it is asked at their next opening of one of your pages (New permissions after a new version). An application that uses yours as a sub-app asks for it in turn, and the email always leaves in the name of the application the person connected to. How to write them: Emails to your users.
Permissions: ai
Section titled “Permissions: ai”"ai": your code may ask a model to read text, PDFs and images with the ai.generate operation, and to
transcribe audio with ai.transcribe, which Apigami runs in the EU, without storing what it reads or training on it.
"x-apigami": { "permissions": ["ai"] }The version whose code calls must declare it: the one a run executes, production’s for your apg_ key and
APIGAMI_KEY. The connect page lists it among what your application may do, and « Continue » grants it;
so does it for an application that uses yours as a sub-app. A run that serves a person needs their grant,
asked like the emails’ (New permissions after a new version);
a run that serves nobody, a cron or a call with your API key, needs only the declaration. How to call it:
AI in your application.
Permissions: identity
Section titled “Permissions: identity”"identity": your application receives the name and email of each person it serves, for a service that
needs to know who they are. Without it, it knows them by their user_ref alone.
"x-apigami": { "permissions": ["identity"] }The version whose code reads it must declare it: the one a run executes, production’s for your apg_ key,
your version’s for APIGAMI_KEY. The connect page tells the person « Your app will see your name and email
address », and asks their name when their account has none; « Continue » grants it. It is never refused: someone
who does not want it stops using your app. A person connected before a version that adds it is asked on the
screen of new permissions, never in the extension’s
window; until then you receive identity: null for them, and nothing else is refused.
You receive identity: { name, email } beside the person’s user_ref, when you
exchange the code, from GET /v1/me under a run, from
GET /v1/users/{user_ref} and in each row of GET /v1/users;
name is null while the person has none, never their email in its place. Your team reads them too, beside the
user_ref, in support. It is never in an event:
app_user.updated says change: { identity: "name" } when it changes, and you read it again.
An application of the group the person connected to receives it: one you declare as a sub-app receives it when it
belongs to your group, reached through applications of your group only. A sub-app of another group receives it only
as an optional one the person authorized on its own line of the screen, under a root that reaches it through the two
groups only, for an account whose email is verified, and reads it with its key or from its own page:
connected_at is null and permissions empty in the app_user.updated that says identity: "granted" or
"withdrawn" (Other applications). Erase what you keep of a
person when you receive app_user.removed, or when GET /v1/users/unreached
lists them, within its 30 days.
The applications it calls: x-apigami.subapps
Section titled “The applications it calls: x-apigami.subapps”x-apigami.subapps lists the applications your code calls, by app_id, at most 50
(Other applications):
"x-apigami": { "subapps": [ { "app_id": "3f6c2d1e-…", "is_optional": true }, { "app_id": "9a01b7c4-…", "is_mcp_exposed": true, "mcp_tool_prefix": "sms" } ]}Each one is called at its production version (Other applications).
is_optional, false by default: each person accepts it for themselves
from one of your pages; until then it is refused for them and asks them nothing.
is_mcp_exposed, false by default: your application’s MCP server offers the tools this sub-app marks
(Tools of the app’s MCP server). mcp_tool_prefix, only beside it: a
lower-case letter then lower-case letters and digits, 15 characters at most, put before each of its tools’
names with an underscore. mcp_excluded_tools, only beside it too: the tools of the sub-app your server leaves out,
by their own names without your prefix, as ["message_send"] when your application sends itself; the sub-app’s own
server keeps them.
The list belongs to the version: adding, removing or making a sub-app optional is a deployment, then a
publication, and publishing an older version again brings back the sub-apps it declared. A version also calls
the mandatory sub-apps of the ones it declares, down the chain, as their productions are when the version is
written (Other applications). A call to any other
application answers 403 not_a_subapp. Writing the version refuses, each pointing at the entry:
| Code | Why |
|---|---|
unknown_subapp |
No such application, or one private to another group |
subapp_not_published |
Another group’s application whose production version was never reviewed |
subapp_self |
The application itself: it always calls its own actions |
subapp_cycle |
It would close a loop, named application by application |
duplicate_subapp |
The same app_id twice |
mcp_tool_collision |
An exposed sub-app offers a tool whose name your own tool, or a sub-app published before it, already holds on your MCP server: set mcp_tool_prefix on its entry |
invalid_mcp_tool_prefix |
A mcp_tool_prefix that is malformed, set without "is_mcp_exposed": true, or taken by two entries |
invalid_mcp_excluded_tool |
A mcp_excluded_tools set without "is_mcp_exposed": true, or naming a tool the sub-app’s production does not offer, judged when the version is written: write the tool’s own name, as message_send, never prefixed |
dependencies_in_manifest |
The former x-apigami.dependencies: write subapps instead |
uses_production_version_removed |
The former choice of a sub-app’s version: a sub-app always runs its production, so remove the key |
One warning blocks nothing: subapp_has_optional_subapps names the optional sub-apps a declared sub-app uses,
itself or down its mandatory ones, that your version may not call until it declares them too. Your subscriptions
already hear the events they emit for a person (Events).
A sub-app of another group that stops being published, or turns private, after you declared it answers
409 sub-application not published at each call, and the next deployment that still declares it is
refused.
Metadata for the applications that embed yours: x-apigami.metadata
Section titled “Metadata for the applications that embed yours: x-apigami.metadata”x-apigami.metadata holds free pairs of strings that the applications declaring yours as a sub-app read with
apigami.subapps(), by a convention between you and them: a category, a sort key, a feature name.
"x-apigami": { "metadata": { "category": "phone" } }At most 16 pairs; a key is a lower-case letter, then lower-case letters, digits and underscores, 40 characters
at most; a value is a string of 200 characters at most (invalid_manifest otherwise, pointing at the pair).
Apigami hands them over as written and never reads one: nothing here grants a right or changes what a person
sees on Apigami’s own screens. They belong to the version, and an application reads those of your production.
Anyone whose application declares yours reads them: never a secret.
Events: x-apigami.events and x-apigami.subscriptions
Section titled “Events: x-apigami.events and x-apigami.subscriptions”x-apigami.events lists the types your code emits, at most 100, each with a description and, if you want, the
JSON Schema of its data. x-apigami.subscriptions lists the types your application hears, at most 100, each with
the action Apigami runs for every event of that type:
"x-apigami": { "events": [ { "type": "message.created", "description": "A message reached the person's mailbox" } ], "subscriptions": [ { "type": "message.*", "action": "messageReceive" }, { "type": "app_user.removed", "action": "personErase" } ]}A type is <namespace>.<name>, two to four segments, 120 characters at most: message.created,
message.created.truncated. The namespace takes lowercase letters, digits and inner hyphens; each next segment starts
with a letter or a digit and also takes - and _. It never carries your slug: who emitted an event is the
app_id of its envelope. Applications that mean the same thing emit the same type, so a subscriber handles all of
them with one action and reads app_id when it needs to know which one emitted. Apigami’s own namespaces are not
yours: extension, app_user, subapp_user, stream, app, task, webhook, pairing, group and apigami.
Your code emits one with POST {APIGAMI_API_URL}/v1/apps/{app_id}/events under its run token (X-Apigami-Run),
the body { "type": "message.created", "data": { … } }, 1 MB at most. The event names the person the run serves,
or the user_ref you put in data. A type your running version does not declare, or one under Apigami’s
namespaces, answers 400.
A subscription is { type, action }, and may add a filter on the event’s content, as a webhook does
(Registering an endpoint): { "type": "message.*", "action": "discordMessageReceive", "filter": { "channel": ["discord"] } } hears the Discord messages of every application under yours.
The subscriptions of one action share one filter. The applications a filter hears can tell which values it takes: keep a person you watch out of it, and sort in your action instead. Its type is a type of Apigami’s catalogue,
<namespace>.* for every type of a namespace, or an application’s type. It hears that type from every application
that serves the person under yours, your sub-apps, their mandatory sub-apps and the optional ones the person
accepted, at any depth, with no declaration for it; an event that names no one only from an application your
version declares or calls (Other applications).
Apigami’s own types are about your application only: app_user.removed says a person left yours, never one of
your sub-apps; subapp_user.* alone also reaches the application just above that declares it. An application never hears its own events. message.* takes message.created.truncated too, while
message.created alone does not: subscribe to the namespace and read type.
| Code | Why |
|---|---|
event_type_reserved |
An event type under one of Apigami’s namespaces |
invalid_subscription_type |
A subscription’s type that is neither in the catalogue, nor <namespace>.*, nor <namespace>.<name> outside Apigami’s namespaces |
unknown_subscription_action |
A subscription naming an action the manifest does not declare |
subscription_filter_conflict |
Two subscriptions of one action holding different filters |
Three warnings block nothing: subscription_type_not_emitted, a type that neither the catalogue nor any application
under yours emits today, which your subscription hears once one does (and an application never hears its own
types); subscription_misses_longer_types, an exact type next to longer ones emitted under yours; and
subscription_app_id_ignored, an app_id in a subscription, which an earlier manifest wrote: Apigami reads it only
to drop an older slug prefix from the type, so write { type, action }.
An application whose earlier versions put its slug first, acme-mail.message.created, is heard without it,
message.created, and is warned event_type_starts_with_slug until it drops it.
A version without code
Section titled “A version without code”x-apigami.entrypoint may be left out: the version is then its manifest alone, for an application whose
code is elsewhere, on your own server for instance, and which declares its sites, its permissions and its
sub-apps here. It is deployed without building anything, its slug reserved at the first deployment, and
published without a trial; a public application’s version is still reviewed. Anything that needs code to
run is refused with entrypoint_required, pointing at it: paths, crons, subscriptions,
open_actions, database, env, and a page at a relative path. So is a version without code while
production or --staging of the application still runs code. Its connect page still attaches the person’s
browser.
Database
Section titled “Database”"database": "sqlite", or true, gives your application a SQLite database, which your code reads as
env.DB;
"database": "postgres" gives it a PostgreSQL database, reached through env.DATABASE_URL, for a real need only: a
schema or a library already written for PostgreSQL, long queries, many concurrent writes. Either is created at the
first try or deployment of a version that declares it, and the application keeps that kind. Without one, the
application has none: a site that only serves pages needs nothing more. Which to take, and how to use it:
Database and schedules. Deleting the application deletes a PostgreSQL database
at once; a SQLite database is kept 30 days, during which contact@apigami.com can give it back, then deleted.
"database": "postgres-external" is a PostgreSQL database of your own, read the same way, whose address a human
types on the link app_environment_write gives, and which Apigami never backs up nor deletes:
A PostgreSQL database of your own.
The services your application hands data to: x-apigami.subprocessors
Section titled “The services your application hands data to: x-apigami.subprocessors”x-apigami.subprocessors lists every third-party service your application sends its people’s data to, to keep or
process it: a database of your own, an AI API, an email or file service, a CRM it writes to. The sites a person
reaches with their own session through their browser are not part of it, nor the services Apigami itself runs your
application on. Each entry has:
| Field | What it holds |
|---|---|
name |
The service, as its customers know it |
category |
database, file_storage, ai, email, messaging, crm, analytics, payments or other |
role |
One sentence a person reads: what the service does with their data |
location |
The country where the data is processed, as a two-letter code (FR, US) |
transfer_basis |
Outside the European Economic Area only, required there: adequacy_decision or standard_contractual_clauses |
dpa_url |
Optional: the service’s data processing agreement, an https:// address |
hosts |
The host names your code calls for it, exact or as *.example.com, at least one |
x-apigami.terms_url gives your application’s own terms, and x-apigami.dpa_url its own data processing agreement
when Apigami’s is not enough; both are https:// addresses. A version declaring "database": "postgres-external"
without a subprocessor whose category is database is refused when it is written
(subprocessor_database_missing), and so is a service outside the European Economic Area without its
transfer_basis, and the same name and location twice (subprocessor_duplicate).
Each person agrees to them on the connect page, by a box « I accept the terms of your app » with your
terms, the data processing agreement and the list as links, before your application serves them; the
subprocessors of the applications yours calls are inherited and agreed the same way, each application its
own box (Your app’s terms). Removing a
subprocessor asks nothing; adding one, moving one to another location, or changing terms_url or
dpa_url asks each person again, so put a new address on terms whose text changes. catalog_read shows the
whole list, inherited entries included, to whoever considers reusing your application.
"files": true gives your application file storage, which your code reads as env.FILES: attachments, images
people send, exports it generates, served and received by its own routes, never by the browser directly. It is
created at the first try or deployment of a version that declares it, shared by every version, and stays for a
version that stops declaring it. How to serve and receive a file, and the limits: Files.
Deleting the application keeps its files 30 days, during which contact@apigami.com can give them back, then
deletes them.
Bot protection
Section titled “Bot protection”"bot_protection": true puts a bot challenge within reach of your public pages: each version deployed with it
receives the challenge’s site key as env.APIGAMI_BOT_PROTECTION_SITE_KEY, and your actions check the token a page
obtained with POST /v1/apps/{app_id}/bot-protection/verify under APIGAMI_KEY. No key to create, no secret to hold.
How to draw the widget and check a token: Bot protection.
Retired fields
Section titled “Retired fields”"manifest_version": 1 is refused (manifest_v1_retired): Apigami no longer runs it, and an older version
written for it can be neither tried nor deployed. x-apigami.predeploy is refused too (predeploy_removed):
Migrations replace it.
The slug: its rules, and what a rename does (no redirect)
Section titled “The slug: its rules, and what a rename does (no redirect)”x-apigami.slug is the public name of your code and its address, https://{slug}.apigami.tech.
It is unique on all of Apigami, first come, first served: choose a distinctive one, your product’s
name with what the application does, such as acme-basket, never a common word another team will
want too. It is 3 to 32 lowercase letters, digits and hyphens, with no -- and no hyphen at either
end. A few whole names are refused, platform words and large brands, and so is a slug with apigami,
staging, login, signin, password, official, com, net or org between its hyphens.
A version whose slug is reserved or taken is invalid as soon as you write it, with reserved_slug or
slug_taken.
The slug is reserved at your first deploy, never by creating the application, and it is never freed
afterwards: a slug you renamed away from stays your group’s, its host answering 404 until a version
declares it again, and a deleted application’s slug stays with your group, which alone can take it back. Code and sub-apps name an application by its
app_id, never by its slug.
A new slug becomes the address when the version carrying it is published; until then, a deployment of
it answers at --staging under both names. The publication’s answer then carries rename, with what
does not follow the application to its new host: browser storage, cookies and sessions, an installed
app, and the redirect URIs registered with other services. Your event types do not change.
The old host and its --staging answer 404 from then on, without a redirect: the name stays your
group’s, and only a version declaring it again brings it back. When the hosting provider fails
mid-move, rename.note says the move is not finished: the old host and its --staging may still serve
the previous version or already answer 404, and the move finishes on its own once the new address
answers, or when you publish the same version again.