Skip to content

Apps

8 calls. Every request needs the Authorization header: see the overview.

GET /apps

Every definition of the tenant, or of one namespace with { namespace }.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Response: App[] (200)

curl -X GET "https://api.maitento.com/apps" \
-H "Authorization: $MAITENTO_AUTH"
DELETE /apps/by-id/{id}

Deletes the definition (refused with a 400 while something still uses it or a run of it is going).

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: no body (204)

curl -X DELETE "https://api.maitento.com/apps/by-id/<id>" \
-H "Authorization: $MAITENTO_AUTH"
GET /apps/by-id/{id}

The definition with this id. Throws NotFoundError when there is none.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: App (200)

curl -X GET "https://api.maitento.com/apps/by-id/<id>" \
-H "Authorization: $MAITENTO_AUTH"
PUT /apps/by-id/{id}/versions/{versionNumber}/start

Starts a run (status New): by name, the latest version; by { id, version }, that version; by { id }, the latest enabled version. Never retried.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes
versionNumberintegeryes

Request body: AppStartRequest

FieldTypeRequiredDescription
inputsNameValuePair[]yesA value for every input the app declares (the parameters of its main), by name. Every declared input is required; a name the app doesn’t declare is ignored.
credentialsInteractionProcessCredentialRequest[] | nullModel keys for this run, in the order they are tried. Every interaction the app starts uses them before your tenant’s model keys. Null or empty: only your tenant’s keys are used.
allowMaitentoFallbackboolean | nullWhether an interaction this app starts may use Maitento’s own key for a provider once no key of yours for it is left. Null means no.
credentialStackstring | nullThe credential stack the run uses, by id or name, and every interaction and code pipeline it starts. Its credentials serve every model call, in the stack’s order, and Maitento’s own keys are never used. Leave it out to use the app’s own stack, then the namespace’s default, then your tenant’s. Can’t be combined with credentials.
aiModelOverridesAiModelOverrideRequestInput[] | nullModel overrides for named agents, applied to every interaction this app starts. Null or empty: agents use the models their definitions name.
webDownloadPartitionIduuid | nullThe temporary knowledge base (partition) that pages fetched by the web tools of every interaction and code pipeline this app starts are kept in, passed on to the apps it starts. Ignored unless it is one of your temporary knowledge bases. Null: each run uses its namespace’s default, then the tenant’s.
webAccessOverridesWebAccessOverrideInput[] | nullWeb tool overrides (on or off, for all agents or one by name) applied to every interaction this app starts.

Response: AppProcess (200)

curl -X PUT "https://api.maitento.com/apps/by-id/<id>/versions/<versionNumber>/start" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"inputs":[]}'
GET /namespaces/{namespaceName}/apps

Every definition of the tenant, or of one namespace with { namespace }.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
namespaceNamestringyes

Response: App[] (200)

curl -X GET "https://api.maitento.com/namespaces/<namespaceName>/apps" \
-H "Authorization: $MAITENTO_AUTH"
POST /namespaces/{namespaceName}/apps

Creates an empty app (its versions come from deploys).

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
namespaceNamestringyes

Request body: AppCreateRequest

FieldTypeRequiredDescription
namestringyesThe app’s name, unique within its namespace. At most 150 characters.

Response: App (200)

curl -X POST "https://api.maitento.com/namespaces/<namespaceName>/apps" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"name":"..."}'
GET /namespaces/{namespaceName}/apps/by-name/{name}

The definition with this name in the namespace. Throws NotFoundError when there is none.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
namespaceNamestringyes
namestringyes

Response: App (200)

curl -X GET "https://api.maitento.com/namespaces/<namespaceName>/apps/by-name/<name>" \
-H "Authorization: $MAITENTO_AUTH"
PUT /namespaces/{namespaceName}/apps/by-name/{name}/versions/latest/start

Starts a run (status New): by name, the latest version; by { id, version }, that version; by { id }, the latest enabled version. Never retried.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
namespaceNamestringyes
namestringyes

Request body: AppStartRequest

FieldTypeRequiredDescription
inputsNameValuePair[]yesA value for every input the app declares (the parameters of its main), by name. Every declared input is required; a name the app doesn’t declare is ignored.
credentialsInteractionProcessCredentialRequest[] | nullModel keys for this run, in the order they are tried. Every interaction the app starts uses them before your tenant’s model keys. Null or empty: only your tenant’s keys are used.
allowMaitentoFallbackboolean | nullWhether an interaction this app starts may use Maitento’s own key for a provider once no key of yours for it is left. Null means no.
credentialStackstring | nullThe credential stack the run uses, by id or name, and every interaction and code pipeline it starts. Its credentials serve every model call, in the stack’s order, and Maitento’s own keys are never used. Leave it out to use the app’s own stack, then the namespace’s default, then your tenant’s. Can’t be combined with credentials.
aiModelOverridesAiModelOverrideRequestInput[] | nullModel overrides for named agents, applied to every interaction this app starts. Null or empty: agents use the models their definitions name.
webDownloadPartitionIduuid | nullThe temporary knowledge base (partition) that pages fetched by the web tools of every interaction and code pipeline this app starts are kept in, passed on to the apps it starts. Ignored unless it is one of your temporary knowledge bases. Null: each run uses its namespace’s default, then the tenant’s.
webAccessOverridesWebAccessOverrideInput[] | nullWeb tool overrides (on or off, for all agents or one by name) applied to every interaction this app starts.

Response: AppProcess (200)

curl -X PUT "https://api.maitento.com/namespaces/<namespaceName>/apps/by-name/<name>/versions/latest/start" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"inputs":[]}'