appwrite.io – server
Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to
- Homepage
- https://api.apis.guru/v2/specs/appwrite.io:server/0.9.3.json
- Provider
- appwrite.io:server / server
- OpenAPI version
- 3.0.0
- Spec (JSON)
- https://api.apis.guru/v2/specs/appwrite.io/server/0.9.3/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/appwrite.io/server/0.9.3/openapi.yaml
Tools (97)
Extracted live via the executor SDK.
-
account.accountCreateRecoverySends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the endpoint to complete the process. The verification link sent to the user's email address is valid for 1 hour.
-
account.accountCreateVerificationUse this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the userId and secret arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the userId and secret parameters. Learn more about how to . The verification link sent to the user's email address is valid for 7 days.
Please note that in order to avoid a , the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.
-
account.accountDeleteDelete a currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. This is done to avoid deleted accounts being overtaken by new users with the same email address. Any user-related resources like documents or storage files should be deleted separately.
-
account.accountDeleteSessionUse this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the option id argument, only the session unique ID provider will be deleted.
-
account.accountDeleteSessionsDelete all sessions from the user account and remove any sessions cookies from the end client.
-
account.accountGetGet currently logged in user data as JSON object.
-
account.accountGetLogsGet currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log.
-
account.accountGetPrefsGet currently logged in user preferences as a key-value object.
-
account.accountGetSessionUse this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.
-
account.accountGetSessionsGet currently logged in user list of active sessions across different devices.
-
account.accountUpdateEmailUpdate currently logged in user account email address. After changing user address, user confirmation status is being reset and a new confirmation mail is sent. For security measures, user password is required to complete this request. This endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.
-
account.accountUpdateNameUpdate currently logged in user account name.
-
account.accountUpdatePasswordUpdate currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth and Team Invites, oldPassword is optional.
-
account.accountUpdatePrefsUpdate currently logged in user account preferences. You can pass only the specific settings you wish to update.
-
account.accountUpdateRecoveryUse this endpoint to complete the user account password reset. Both the userId and secret arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the endpoint.
Please note that in order to avoid a the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.
-
account.accountUpdateVerificationUse this endpoint to complete the user email verification process. Use both the userId and secret parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.
-
avatars.avatarsGetBrowserYou can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user /account/sessions endpoint. Use width, height and quality arguments to change the output settings.
-
avatars.avatarsGetCreditCardThe credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.
-
avatars.avatarsGetFaviconUse this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.
-
avatars.avatarsGetFlagYou can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.
-
avatars.avatarsGetImageUse this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.
-
avatars.avatarsGetInitialsUse this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.
You can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.
-
avatars.avatarsGetQrConverts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.
-
database.databaseCreateCollectionCreate a new Collection.
-
database.databaseCreateDocumentCreate a new Document. Before using this route, you should create a new collection resource using either a API or directly from your database console.
-
database.databaseDeleteCollectionDelete a collection by its unique ID. Only users with write permissions have access to delete this resource.
-
database.databaseDeleteDocumentDelete a document by its unique ID. This endpoint deletes only the parent documents, its attributes and relations to other documents. Child documents will not be deleted.
-
database.databaseGetCollectionGet a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.
-
database.databaseGetDocumentGet a document by its unique ID. This endpoint response returns a JSON object with the document data.
-
database.databaseListCollectionsGet a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's collections. .
-
database.databaseListDocumentsGet a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's documents. .
-
database.databaseUpdateCollectionUpdate a collection by its unique ID.
-
database.databaseUpdateDocumentUpdate a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.
-
functions.functionsCreateCreate a new function. You can pass a list of to allow different project users or team with access to execute the function using the client API.
-
functions.functionsCreateExecutionTrigger a function execution. The returned object will return you the current execution status. You can ping the
Get Executionendpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously. -
functions.functionsCreateTagCreate a new function code tag. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's tag to use your new tag UID.
This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the .
Use the "command" param to set the entry point used to execute your code.
-
functions.functionsDeleteDelete a function by its unique ID.
-
functions.functionsDeleteTagDelete a code tag by its unique ID.
-
functions.functionsGetGet a function by its unique ID.
-
functions.functionsGetExecutionGet a function execution log by its unique ID.
-
functions.functionsGetTagGet a code tag by its unique ID.
-
functions.functionsListGet a list of all the project's functions. You can use the query params to filter your results.
-
functions.functionsListExecutionsGet a list of all the current user function execution logs. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's executions. .
-
functions.functionsListTagsGet a list of all the project's code tags. You can use the query params to filter your results.
-
functions.functionsUpdateUpdate function by its unique ID.
-
functions.functionsUpdateTagUpdate the function code tag ID using the unique function ID. Use this endpoint to switch the code tag that should be executed by the execution endpoint.
-
health.healthGetCheck the Appwrite HTTP server is up and responsive.
-
health.healthGetAntiVirusCheck the Appwrite Anti Virus server is up and connection is successful.
-
health.healthGetCacheCheck the Appwrite in-memory cache server is up and connection is successful.
-
health.healthGetDbCheck the Appwrite database server is up and connection is successful.
-
health.healthGetQueueCertificatesGet the number of certificates that are waiting to be issued against in the Appwrite internal queue server.
-
health.healthGetQueueFunctions -
health.healthGetQueueLogsGet the number of logs that are waiting to be processed in the Appwrite internal queue server.
-
health.healthGetQueueTasksGet the number of tasks that are waiting to be processed in the Appwrite internal queue server.
-
health.healthGetQueueUsageGet the number of usage stats that are waiting to be processed in the Appwrite internal queue server.
-
health.healthGetQueueWebhooksGet the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
-
health.healthGetStorageLocalCheck the Appwrite local storage device is up and connection is successful.
-
health.healthGetTimeCheck 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 (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.
-
locale.localeGetGet 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.localeGetContinentsList of all continents. You can use the locale header to get the data in a supported language.
-
locale.localeGetCountriesList of all countries. You can use the locale header to get the data in a supported language.
-
locale.localeGetCountriesEuList of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.
-
locale.localeGetCountriesPhonesList of all countries phone codes. You can use the locale header to get the data in a supported language.
-
locale.localeGetCurrenciesList 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.
-
locale.localeGetLanguagesList of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.
-
storage.storageCreateFileCreate a new file. The user who creates the file will automatically be assigned to read and write access unless he has passed custom values for read and write arguments.
-
storage.storageDeleteFileDelete a file by its unique ID. Only users with write permissions have access to delete this resource.
-
storage.storageGetFileGet a file by its unique ID. This endpoint response returns a JSON object with the file metadata.
-
storage.storageGetFileDownloadGet a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
-
storage.storageGetFilePreviewGet a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image.
-
storage.storageGetFileViewGet a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.
-
storage.storageListFilesGet a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's files. .
-
storage.storageUpdateFileUpdate a file by its unique ID. Only users with write permissions have access to update this resource.
-
teams.teamsCreateCreate a new team. The user who creates the team will automatically be assigned as the owner of the team. The team owner can invite new members, who will be able add new owners and update or delete the team from your project.
-
teams.teamsCreateMembershipUse this endpoint to invite a new member to join your team. If initiated from Client SDK, an email with a link to join the team will be sent to the new member's email address if the member doesn't exist in the project it will be created automatically. If initiated from server side SDKs, new member will automatically be added to the team.
Use the 'URL' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the endpoint to allow the user to accept the invitation to the team. While calling from side SDKs the redirect url can be empty string.
Please note that in order to avoid a the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.
-
teams.teamsDeleteDelete a team by its unique ID. Only team owners have write access for this resource.
-
teams.teamsDeleteMembershipThis endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.
-
teams.teamsGetGet a team by its unique ID. All team members have read access for this resource.
-
teams.teamsGetMembershipsGet a team members by the team unique ID. All team members have read access for this list of resources.
-
teams.teamsListGet a list of all the current user teams. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's teams. .
-
teams.teamsUpdateUpdate a team by its unique ID. Only team owners have write access for this resource.
-
teams.teamsUpdateMembershipRoles -
teams.teamsUpdateMembershipStatusUse this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email recieved by the user.
-
users.usersCreateCreate a new user.
-
users.usersDeleteDelete a user by its unique ID.
-
users.usersDeleteSessionDelete a user sessions by its unique ID.
-
users.usersDeleteSessionsDelete all user's sessions by using the user's unique ID.
-
users.usersGetGet a user by its unique ID.
-
users.usersGetLogsGet a user activity logs list by its unique ID.
-
users.usersGetPrefsGet the user preferences by its unique ID.
-
users.usersGetSessionsGet the user sessions list by its unique ID.
-
users.usersListGet a list of all the project's users. You can use the query params to filter your results.
-
users.usersUpdatePrefsUpdate the user preferences by its unique ID. You can pass only the specific settings you wish to update.
-
users.usersUpdateStatusUpdate the user status by its unique ID.
-
users.usersUpdateVerificationUpdate the user email verification status by its unique ID.
-
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools