/messaging/messages/push/{messageId}
Update a push notification by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| messageId | path | required | string | Message ID. |
application/json
MessagingUpdatePushNotificationRequest
| Property | Type | Required |
|---|---|---|
| tag | string | optional |
| body | string | optional |
| data | object | optional |
| icon | string | optional |
| badge | integer | optional |
| color | string | optional |
| draft | boolean | optional |
| image | string | optional |
| sound | string | optional |
| title | string | optional |
| users | array | optional |
| action | string | optional |
| topics | array | optional |
| targets | array | optional |
| scheduledAt | string | optional |
Message
PATCH /messaging/messages/push/{messageId}
/messaging/messages/sms
Create a new SMS message.
application/json
MessagingCreateSmsMessageRequest
| Property | Type | Required |
|---|---|---|
| draft | boolean | optional |
| users | array | optional |
| topics | array | optional |
| content | string | required |
| targets | array | optional |
| messageId | string | required |
| scheduledAt | string | optional |
Message
POST /messaging/messages/sms
/messaging/messages/sms/{messageId}
Update an email message by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| messageId | path | required | string | Message ID. |
application/json
MessagingUpdateSmsMessageRequest
| Property | Type | Required |
|---|---|---|
| draft | boolean | optional |
| users | array | optional |
| topics | array | optional |
| content | string | optional |
| targets | array | optional |
| scheduledAt | string | optional |
Message
PATCH /messaging/messages/sms/{messageId}
/messaging/messages/{messageId}
Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| messageId | path | required | string | Message ID. |
No content
DELETE /messaging/messages/{messageId}
/messaging/messages/{messageId}
Get a message by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| messageId | path | required | string | Message ID. |
Message
GET /messaging/messages/{messageId}
/messaging/messages/{messageId}/logs
Get the message activity logs listed by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| messageId | path | required | string | Message ID. |
| queries | query | optional | array | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Only supported methods are limit and offset |
Logs List
GET /messaging/messages/{messageId}/logs
/messaging/messages/{messageId}/targets
Get a list of the targets associated with a message.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| messageId | path | required | string | Message 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: userId, providerId, identifier, providerType |
Target list
GET /messaging/messages/{messageId}/targets
/messaging/providers
Get a list of all providers 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: name, provider, type, enabled |
| search | query | optional | string | Search term to filter your list results. Max length: 256 chars. |
Provider list
GET /messaging/providers
/messaging/providers/apns
Create a new Apple Push Notification service provider.
application/json
MessagingCreateApnsProviderRequest
| Property | Type | Required |
|---|---|---|
| name | string | required |
| teamId | string | optional |
| authKey | string | optional |
| enabled | boolean | optional |
| sandbox | boolean | optional |
| bundleId | string | optional |
| authKeyId | string | optional |
| providerId | string | required |
Provider
POST /messaging/providers/apns
/messaging/providers/apns/{providerId}
Update a Apple Push Notification service provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateApnsProviderRequest
| Property | Type | Required |
|---|---|---|
| name | string | optional |
| teamId | string | optional |
| authKey | string | optional |
| enabled | boolean | optional |
| sandbox | boolean | optional |
| bundleId | string | optional |
| authKeyId | string | optional |
Provider
PATCH /messaging/providers/apns/{providerId}
/messaging/providers/fcm
Create a new Firebase Cloud Messaging provider.
application/json
MessagingCreateFcmProviderRequest
| Property | Type | Required |
|---|---|---|
| name | string | required |
| enabled | boolean | optional |
| providerId | string | required |
| serviceAccountJSON | object | optional |
Provider
POST /messaging/providers/fcm
/messaging/providers/fcm/{providerId}
Update a Firebase Cloud Messaging provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateFcmProviderByIdRequest
| Property | Type | Required |
|---|---|---|
| name | string | optional |
| enabled | boolean | optional |
| serviceAccountJSON | object | optional |
Provider
PATCH /messaging/providers/fcm/{providerId}
/messaging/providers/mailgun
Create a new Mailgun provider.
application/json
MessagingCreateProviderRequest
| Property | Type | Required |
|---|---|---|
| name | string | required |
| apiKey | string | optional |
| domain | string | optional |
| enabled | boolean | optional |
| fromName | string | optional |
| fromEmail | string | optional |
| isEuRegion | boolean | optional |
| providerId | string | required |
| replyToName | string | optional |
| replyToEmail | string | optional |
Provider
POST /messaging/providers/mailgun
/messaging/providers/mailgun/{providerId}
Update a Mailgun provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateMailgunProviderRequest
| Property | Type | Required |
|---|---|---|
| name | string | optional |
| apiKey | string | optional |
| domain | string | optional |
| enabled | boolean | optional |
| fromName | string | optional |
| fromEmail | string | optional |
| isEuRegion | boolean | optional |
| replyToName | string | optional |
| replyToEmail | string | optional |
Provider
PATCH /messaging/providers/mailgun/{providerId}
/messaging/providers/msg91
Create a new MSG91 provider.
application/json
MessagingCreateMsg91ProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | required |
| authKey | string | optional |
| enabled | boolean | optional |
| senderId | string | optional |
| providerId | string | required |
Provider
POST /messaging/providers/msg91
/messaging/providers/msg91/{providerId}
Update a MSG91 provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateMsg91ProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | optional |
| authKey | string | optional |
| enabled | boolean | optional |
| senderId | string | optional |
Provider
PATCH /messaging/providers/msg91/{providerId}
/messaging/providers/sendgrid
Create a new Sendgrid provider.
application/json
MessagingCreateSendgridProviderRequest
| Property | Type | Required |
|---|---|---|
| name | string | required |
| apiKey | string | optional |
| enabled | boolean | optional |
| fromName | string | optional |
| fromEmail | string | optional |
| providerId | string | required |
| replyToName | string | optional |
| replyToEmail | string | optional |
Provider
POST /messaging/providers/sendgrid
/messaging/providers/sendgrid/{providerId}
Update a Sendgrid provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateProviderRequest
| Property | Type | Required |
|---|---|---|
| name | string | optional |
| apiKey | string | optional |
| enabled | boolean | optional |
| fromName | string | optional |
| fromEmail | string | optional |
| replyToName | string | optional |
| replyToEmail | string | optional |
Provider
PATCH /messaging/providers/sendgrid/{providerId}
/messaging/providers/smtp
Create a new SMTP provider.
application/json
MessagingCreateSmtpProviderRequest
| Property | Type | Required |
|---|---|---|
| host | string | required |
| name | string | required |
| port | integer | optional |
| mailer | string | optional |
| autoTLS | boolean | optional |
| enabled | boolean | optional |
| fromName | string | optional |
| password | string | optional |
| username | string | optional |
| fromEmail | string | optional |
| encryption | string | optional |
| providerId | string | required |
| replyToName | string | optional |
| replyToEmail | string | optional |
Provider
POST /messaging/providers/smtp
/messaging/providers/smtp/{providerId}
Update a SMTP provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateProviderByIdRequest
| Property | Type | Required |
|---|---|---|
| host | string | optional |
| name | string | optional |
| port | integer | optional |
| mailer | string | optional |
| autoTLS | boolean | optional |
| enabled | boolean | optional |
| fromName | string | optional |
| password | string | optional |
| username | string | optional |
| fromEmail | string | optional |
| encryption | string | optional |
| replyToName | string | optional |
| replyToEmail | string | optional |
Provider
PATCH /messaging/providers/smtp/{providerId}
/messaging/providers/telesign
Create a new Telesign provider.
application/json
MessagingCreateTelesignProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | required |
| apiKey | string | optional |
| enabled | boolean | optional |
| customerId | string | optional |
| providerId | string | required |
Provider
POST /messaging/providers/telesign
/messaging/providers/telesign/{providerId}
Update a Telesign provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateTelesignProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | optional |
| apiKey | string | optional |
| enabled | boolean | optional |
| customerId | string | optional |
Provider
PATCH /messaging/providers/telesign/{providerId}
/messaging/providers/textmagic
Create a new Textmagic provider.
application/json
MessagingCreateTextmagicProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | required |
| apiKey | string | optional |
| enabled | boolean | optional |
| username | string | optional |
| providerId | string | required |
Provider
POST /messaging/providers/textmagic
/messaging/providers/textmagic/{providerId}
Update a Textmagic provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateTextmagicProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | optional |
| apiKey | string | optional |
| enabled | boolean | optional |
| username | string | optional |
Provider
PATCH /messaging/providers/textmagic/{providerId}
/messaging/providers/twilio
Create a new Twilio provider.
application/json
MessagingCreateTwilioProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | required |
| enabled | boolean | optional |
| authToken | string | optional |
| accountSid | string | optional |
| providerId | string | required |
Provider
POST /messaging/providers/twilio
/messaging/providers/twilio/{providerId}
Update a Twilio provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateTwilioProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | optional |
| enabled | boolean | optional |
| authToken | string | optional |
| accountSid | string | optional |
Provider
PATCH /messaging/providers/twilio/{providerId}
/messaging/providers/vonage
Create a new Vonage provider.
application/json
MessagingCreateVonageProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | required |
| apiKey | string | optional |
| enabled | boolean | optional |
| apiSecret | string | optional |
| providerId | string | required |
Provider
POST /messaging/providers/vonage
/messaging/providers/vonage/{providerId}
Update a Vonage provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
application/json
MessagingUpdateVonageProviderRequest
| Property | Type | Required |
|---|---|---|
| from | string | optional |
| name | string | optional |
| apiKey | string | optional |
| enabled | boolean | optional |
| apiSecret | string | optional |
Provider
PATCH /messaging/providers/vonage/{providerId}
/messaging/providers/{providerId}
Delete a provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
No content
DELETE /messaging/providers/{providerId}
/messaging/providers/{providerId}
Get a provider by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
Provider
GET /messaging/providers/{providerId}
/messaging/providers/{providerId}/logs
Get the provider activity logs listed by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| providerId | path | required | string | Provider ID. |
| queries | query | optional | array | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Only supported methods are limit and offset |
Logs List
GET /messaging/providers/{providerId}/logs
/messaging/subscribers/{subscriberId}/logs
Get the subscriber activity logs listed by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| subscriberId | path | required | string | Subscriber ID. |
| queries | query | optional | array | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Only supported methods are limit and offset |
Logs List
GET /messaging/subscribers/{subscriberId}/logs
/messaging/topics
Get a list of all topics 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: name, description, emailTotal, smsTotal, pushTotal |
| search | query | optional | string | Search term to filter your list results. Max length: 256 chars. |
Topic list
GET /messaging/topics
/messaging/topics
Create a new topic.
application/json
MessagingCreateTopicRequest
| Property | Type | Required |
|---|---|---|
| name | string | required |
| topicId | string | required |
| subscribe | array | optional |
Topic
POST /messaging/topics
/messaging/topics/{topicId}
Delete a topic by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| topicId | path | required | string | Topic ID. |
No content
DELETE /messaging/topics/{topicId}
/messaging/topics/{topicId}
Get a topic by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| topicId | path | required | string | Topic ID. |
Topic
GET /messaging/topics/{topicId}
/messaging/topics/{topicId}
Update a topic by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| topicId | path | required | string | Topic ID. |
application/json
MessagingUpdateTopicByIdRequest
| Property | Type | Required |
|---|---|---|
| name | string | optional |
| subscribe | array | optional |
Topic
PATCH /messaging/topics/{topicId}
/messaging/topics/{topicId}/logs
Get the topic activity logs listed by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| topicId | path | required | string | Topic ID. |
| queries | query | optional | array | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Only supported methods are limit and offset |
Logs List
GET /messaging/topics/{topicId}/logs
/messaging/topics/{topicId}/subscribers
Get a list of all subscribers from the current Appwrite project.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| topicId | path | required | string | Topic ID. The topic ID subscribed to. |
| 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: name, provider, type, enabled |
| search | query | optional | string | Search term to filter your list results. Max length: 256 chars. |
Subscriber list
GET /messaging/topics/{topicId}/subscribers
/messaging/topics/{topicId}/subscribers
Create a new subscriber.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| topicId | path | required | string | Topic ID. The topic ID to subscribe to. |
application/json
MessagingCreateSubscriberRequest
| Property | Type | Required |
|---|---|---|
| targetId | string | required |
| subscriberId | string | required |
Subscriber
POST /messaging/topics/{topicId}/subscribers
/messaging/topics/{topicId}/subscribers/{subscriberId}
Delete a subscriber by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| topicId | path | required | string | Topic ID. The topic ID subscribed to. |
| subscriberId | path | required | string | Subscriber ID. |
No content
DELETE /messaging/topics/{topicId}/subscribers/{subscriberId}
/messaging/topics/{topicId}/subscribers/{subscriberId}
Get a subscriber by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| topicId | path | required | string | Topic ID. The topic ID subscribed to. |
| subscriberId | path | required | string | Subscriber ID. |
Subscriber
GET /messaging/topics/{topicId}/subscribers/{subscriberId}
/storage/buckets
Get a list of all the storage buckets. You can use the query params to filter your results.
| 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: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus |
| search | query | optional | string | Search term to filter your list results. Max length: 256 chars. |
Buckets List
GET /storage/buckets
/storage/buckets
Create a new storage bucket.
application/json
StorageCreateNewBucketRequest
| Property | Type | Required |
|---|---|---|
| name | string | required |
| enabled | boolean | optional |
| bucketId | string | required |
| antivirus | boolean | optional |
| encryption | boolean | optional |
| compression | string | optional |
| permissions | array | optional |
| fileSecurity | boolean | optional |
| maximumFileSize | integer | optional |
| allowedFileExtensions | array | optional |
Bucket
POST /storage/buckets
/storage/buckets/{bucketId}
Delete a storage bucket by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| bucketId | path | required | string | Bucket unique ID. |
No content
DELETE /storage/buckets/{bucketId}
/storage/buckets/{bucketId}
Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| bucketId | path | required | string | Bucket unique ID. |
Bucket
GET /storage/buckets/{bucketId}
/storage/buckets/{bucketId}
Update a storage bucket by its unique ID.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| bucketId | path | required | string | Bucket unique ID. |
application/json
StorageUpdateBucketByIdRequest
| Property | Type | Required |
|---|---|---|
| name | string | required |
| enabled | boolean | optional |
| antivirus | boolean | optional |
| encryption | boolean | optional |
| compression | string | optional |
| permissions | array | optional |
| fileSecurity | boolean | optional |
| maximumFileSize | integer | optional |
| allowedFileExtensions | array | optional |
Bucket
PUT /storage/buckets/{bucketId}
/storage/buckets/{bucketId}/files
Get a list of all the user files. You can use the query params to filter your results.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| bucketId | path | required | string | Storage bucket unique ID. You can create a new storage bucket using the Storage service server integration. |
| 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: name, signature, mimeType, sizeOriginal, chunksTotal, chunksUploaded |
| search | query | optional | string | Search term to filter your list results. Max length: 256 chars. |
Files List
GET /storage/buckets/{bucketId}/files
/storage/buckets/{bucketId}/files
Create a new file. Before using this route, you should create a new bucket resource using either a server integration API or directly from your Appwrite console.
Larger files should be uploaded using multiple requests with the content-range header to send a partial request with a maximum supported chunk of 5MB. The content-range header values should always be in bytes.
When the first request is sent, the server will return the File object, and the subsequent part request must include the file’s id in x-appwrite-id header to allow the server to know that the partial upload is for the existing file and not for a new one.
If you’re creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| bucketId | path | required | string | Storage bucket unique ID. You can create a new storage bucket using the Storage service server integration. |
multipart/form-data
StorageCreateFileRequest
| Property | Type | Required |
|---|---|---|
| file | string | required |
| fileId | string | required |
| permissions | array | optional |
File
POST /storage/buckets/{bucketId}/files
/storage/buckets/{bucketId}/files/{fileId}
Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| bucketId | path | required | string | Storage bucket unique ID. You can create a new storage bucket using the Storage service server integration. |
| fileId | path | required | string | File ID. |
No content
DELETE /storage/buckets/{bucketId}/files/{fileId}