/functions/{functionId}/deployments/{deploymentId}
Delete a code deployment by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function ID. |
| deploymentId | path | required | string | Deployment ID. |
No content
DELETE /functions/{functionId}/deployments/{deploymentId}
/functions/{functionId}/deployments/{deploymentId}
Get a code deployment by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function ID. |
| deploymentId | path | required | string | Deployment ID. |
Deployment
GET /functions/{functionId}/deployments/{deploymentId}
/functions/{functionId}/deployments/{deploymentId}
Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function ID. |
| deploymentId | path | required | string | Deployment ID. |
Function
PATCH /functions/{functionId}/deployments/{deploymentId}
/functions/{functionId}/deployments/{deploymentId}/builds/{buildId}
Create a new build for an Appwrite Function deployment. This endpoint can be used to retry a failed build.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function ID. |
| deploymentId | path | required | string | Deployment ID. |
| buildId | path | required | string | Build unique ID. |
No content
POST /functions/{functionId}/deployments/{deploymentId}/builds/{buildId}
/functions/{functionId}/deployments/{deploymentId}/download
Get a Deployment’s contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function ID. |
| deploymentId | path | required | string | Deployment ID. |
File
GET /functions/{functionId}/deployments/{deploymentId}/download
/functions/{functionId}/executions
Get a list of all the current user function execution logs. You can use the query params to filter your results.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function ID. |
| queries | query | optional | array | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration |
| search | query | optional | string | Search term to filter your list results. Max length: 256 chars. |
Executions List
GET /functions/{functionId}/executions
/functions/{functionId}/executions
Trigger a function execution. The returned object will return you the current execution status. You can ping the Get Execution endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function ID. |
application/json
FunctionsTriggerExecutionRequest
| Property | Type | Required |
|---|---|---|
| body | string | optional |
| path | string | optional |
| async | boolean | optional |
| method | string | optional |
| headers | object | optional |
Execution
POST /functions/{functionId}/executions
/functions/{functionId}/executions/{executionId}
Get a function execution log by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function ID. |
| executionId | path | required | string | Execution ID. |
Execution
GET /functions/{functionId}/executions/{executionId}
/functions/{functionId}/variables
Get a list of all variables of a specific function.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function unique ID. |
Variables List
GET /functions/{functionId}/variables
/functions/{functionId}/variables
Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function unique ID. |
application/json
FunctionsCreateVariableRequest
| Property | Type | Required |
|---|---|---|
| key | string | required |
| value | string | required |
Variable
POST /functions/{functionId}/variables
/functions/{functionId}/variables/{variableId}
Delete a variable by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function unique ID. |
| variableId | path | required | string | Variable unique ID. |
No content
DELETE /functions/{functionId}/variables/{variableId}
/functions/{functionId}/variables/{variableId}
Get a variable by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function unique ID. |
| variableId | path | required | string | Variable unique ID. |
Variable
GET /functions/{functionId}/variables/{variableId}
/functions/{functionId}/variables/{variableId}
Update variable by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| functionId | path | required | string | Function unique ID. |
| variableId | path | required | string | Variable unique ID. |
application/json
FunctionsUpdateVariableByIdRequest
| Property | Type | Required |
|---|---|---|
| key | string | required |
| value | string | optional |
Variable
PUT /functions/{functionId}/variables/{variableId}
/graphql
Execute a GraphQL mutation.
Any
POST /graphql
/graphql/mutation
Execute a GraphQL mutation.
Any
POST /graphql/mutation
/health
Check the Appwrite HTTP server is up and responsive.
Health Status
GET /health
/health/anti-virus
Check the Appwrite Antivirus server is up and connection is successful.
Health Antivirus
GET /health/anti-virus
/health/cache
Check the Appwrite in-memory cache servers are up and connection is successful.
Health Status
GET /health/cache
/health/certificate
Get the SSL certificate for a domain
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| domain | query | optional | string | string |
Health Certificate
GET /health/certificate
/health/db
Check the Appwrite database servers are up and connection is successful.
Health Status
GET /health/db
/health/pubsub
Check the Appwrite pub-sub servers are up and connection is successful.
Health Status
GET /health/pubsub
/health/queue
Check the Appwrite queue messaging servers are up and connection is successful.
Health Status
GET /health/queue
/health/queue/builds
Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/builds
/health/queue/certificates
Get the number of certificates that are waiting to be issued against Letsencrypt in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/certificates
/health/queue/databases
Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| name | query | optional | string | Queue name for which to check the queue size |
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/databases
/health/queue/deletes
Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/deletes
/health/queue/failed/{name}
Returns the amount of failed jobs in a given queue.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| name | path | required | string | The name of the queue |
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/failed/{name}
/health/queue/functions
Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/functions
/health/queue/logs
Get the number of logs that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/logs
/health/queue/mails
Get the number of mails that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/mails
/health/queue/messaging
Get the number of messages that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/messaging
/health/queue/migrations
Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/migrations
/health/queue/usage
Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/usage
/health/queue/usage-dump
Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/usage-dump
/health/queue/webhooks
Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| threshold | query | optional | integer | Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. |
Health Queue
GET /health/queue/webhooks
/health/storage
Check the Appwrite storage device is up and connection is successful.
Health Status
GET /health/storage
/health/storage/local
Check the Appwrite local storage device is up and connection is successful.
Health Status
GET /health/storage/local
/health/time
Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The Network Time Protocol (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.
Health Time
GET /health/time
/locale
Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.
Locale
GET /locale
/locale/codes
List of all locale codes in ISO 639-1.
Locale codes list
GET /locale/codes
/locale/continents
List of all continents. You can use the locale header to get the data in a supported language.
Continents List
GET /locale/continents
/locale/countries
List of all countries. You can use the locale header to get the data in a supported language.
Countries List
GET /locale/countries
/locale/countries/eu
List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.
Countries List
GET /locale/countries/eu
/locale/countries/phones
List of all countries phone codes. You can use the locale header to get the data in a supported language.
Phones List
GET /locale/countries/phones
/locale/currencies
List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.
Currencies List
GET /locale/currencies
/locale/languages
List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.
Languages List
GET /locale/languages
/messaging/messages
Get a list of all messages from the current Appwrite project.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| queries | query | optional | array | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType |
| search | query | optional | string | Search term to filter your list results. Max length: 256 chars. |
Message list
GET /messaging/messages
/messaging/messages/email
Create a new email message.
application/json
MessagingCreateEmailMessageRequest
| Property | Type | Required |
|---|---|---|
| cc | array | optional |
| bcc | array | optional |
| html | boolean | optional |
| draft | boolean | optional |
| users | array | optional |
| topics | array | optional |
| content | string | required |
| subject | string | required |
| targets | array | optional |
| messageId | string | required |
| attachments | array | optional |
| scheduledAt | string | optional |
Message
POST /messaging/messages/email
/messaging/messages/email/{messageId}
Update an email message by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| messageId | path | required | string | Message ID. |
application/json
MessagingUpdateEmailByIdRequest
| Property | Type | Required |
|---|---|---|
| cc | array | optional |
| bcc | array | optional |
| html | boolean | optional |
| draft | boolean | optional |
| users | array | optional |
| topics | array | optional |
| content | string | optional |
| subject | string | optional |
| targets | array | optional |
| scheduledAt | string | optional |
Message
PATCH /messaging/messages/email/{messageId}
/messaging/messages/push
Create a new push notification.
application/json
MessagingCreatePushNotificationRequest
| Property | Type | Required |
|---|---|---|
| tag | string | optional |
| body | string | required |
| data | object | optional |
| icon | string | optional |
| badge | string | optional |
| color | string | optional |
| draft | boolean | optional |
| image | string | optional |
| sound | string | optional |
| title | string | required |
| users | array | optional |
| action | string | optional |
| topics | array | optional |
| targets | array | optional |
| messageId | string | required |
| scheduledAt | string | optional |
Message
POST /messaging/messages/push