← Back to catalog

Other

Appwrite

auto-generated
swirls add appwrite
actionPUTv1.0.0

Complete Email Verification

Use 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.

Source
actionPUTv1.0.0

Complete Password Recovery

Use 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 [POST /account/recovery](/docs/client/account#accountCreateRecovery) endpoint. Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.

Source
actionPOSTv1.0.0

Create Account

Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [/account/verfication](/docs/client/account#accountCreateVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](/docs/client/account#accountCreateSession).

Source
actionPOSTv1.0.0

Create Account JWT

Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.

Source
actionPOSTv1.0.0

Create Account Session

Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.

Source
actionPOSTv1.0.0

Create Anonymous Session

Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account, you need to update its [email and password](/docs/client/account#accountUpdateEmail) or create an [OAuth2 session](/docs/client/account#accountCreateOAuth2Session).

Source
actionPOSTv1.0.0

Create Document

Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](/docs/server/database#databaseCreateCollection) API or directly from your database console.

Source
actionPOSTv1.0.0

Create Email Verification

Use 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 [complete the verification process](/docs/client/account#accountUpdateVerification). The verification link sent to the user's email address is valid for 7 days. Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.

Source
actionPOSTv1.0.0

Create Execution

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.

Source
actionPOSTv1.0.0

Create File

Create 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.

Source
actionPOSTv1.0.0

Create Password Recovery

Sends 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 [PUT /account/recovery](/docs/client/account#accountUpdateRecovery) endpoint to complete the process. The verification link sent to the user's email address is valid for 1 hour.

Source
actionPOSTv1.0.0

Create Team

Create 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.

Source
actionPOSTv1.0.0

Create Team Membership

Use 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 [Update Team Membership Status](/docs/client/teams#teamsUpdateMembershipStatus) 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 [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.

Source
actionDELETEv1.0.0

Delete Account

Delete 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.

Source
actionDELETEv1.0.0

Delete Account Session

Use 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.

Source
actionDELETEv1.0.0

Delete All Account Sessions

Delete all sessions from the user account and remove any sessions cookies from the end client.

Source
actionDELETEv1.0.0

Delete Document

Delete 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.

Source
actionDELETEv1.0.0

Delete File

Delete a file by its unique ID. Only users with write permissions have access to delete this resource.

Source
actionDELETEv1.0.0

Delete Team

Delete a team by its unique ID. Only team owners have write access for this resource.

Source
actionDELETEv1.0.0

Delete Team Membership

This 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.

Source
actionGETv1.0.0

Get Account

Get currently logged in user data as JSON object.

Source
actionGETv1.0.0

Get Account Logs

Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log.

Source
actionGETv1.0.0

Get Account Sessions

Get currently logged in user list of active sessions across different devices.

Source
actionGETv1.0.0

Get Browser Icon

You 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.

Source
actionGETv1.0.0

Get Country Flag

You 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.

Source
actionGETv1.0.0

Get Credit Card Icon

The 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.

Source
actionGETv1.0.0

Get Document

Get a document by its unique ID. This endpoint response returns a JSON object with the document data.

Source
actionGETv1.0.0

Get Execution

Get a function execution log by its unique ID.

Source
actionGETv1.0.0

Get Favicon

Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.

Source
actionGETv1.0.0

Get File

Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.

Source
actionGETv1.0.0

Get File for View

Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.

Source
actionGETv1.0.0

Get File Preview

Get 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.

Source
actionGETv1.0.0

Get Image from URL

Use 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.

Source
actionGETv1.0.0

Get QR Code

Converts 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.

Source
actionGETv1.0.0

Get Session By ID

Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.

Source
actionGETv1.0.0

Get Team

Get a team by its unique ID. All team members have read access for this resource.

Source
actionGETv1.0.0

Get Team Memberships

Get a team members by the team unique ID. All team members have read access for this list of resources.

Source
actionGETv1.0.0

Get User Initials

Use 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.

Source
actionGETv1.0.0

Get User 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. ([IP Geolocation by DB-IP](https://db-ip.com))

Source
actionGETv1.0.0

List Continents

List of all continents. You can use the locale header to get the data in a supported language.

Source
actionGETv1.0.0

List Countries

List of all countries. You can use the locale header to get the data in a supported language.

Source
actionGETv1.0.0

List Countries Phone Codes

List of all countries phone codes. You can use the locale header to get the data in a supported language.

Source
actionGETv1.0.0

List 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.

Source
actionGETv1.0.0

List Documents

Get 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. [Learn more about different API modes](/docs/admin).

Source
actionGETv1.0.0

List EU Countries

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.

Source
actionGETv1.0.0

List Executions

Get 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. [Learn more about different API modes](/docs/admin).

Source
actionGETv1.0.0

List Files

Get 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. [Learn more about different API modes](/docs/admin).

Source
actionGETv1.0.0

List Languages

List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.

Source
actionGETv1.0.0

List Teams

Get 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. [Learn more about different API modes](/docs/admin).

Source
actionPATCHv1.0.0

Update Account Email

Update 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.

Source
actionPATCHv1.0.0

Update Account Name

Update currently logged in user account name.

Source
actionPATCHv1.0.0

Update Account Password

Update 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.

Source
actionPATCHv1.0.0

Update Account Preferences

Update currently logged in user account preferences. You can pass only the specific settings you wish to update.

Source
actionPATCHv1.0.0

Update Document

Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.

Source
actionPUTv1.0.0

Update File

Update a file by its unique ID. Only users with write permissions have access to update this resource.

Source
actionPUTv1.0.0

Update Team

Update a team by its unique ID. Only team owners have write access for this resource.

Source
actionPATCHv1.0.0

Update Team Membership Status

Use 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.

Source
Beyond the catalog

Any provider, on request.

01

Request it

Tell us which provider you need, and we will ship it in the registry.

02

Generate it

Point swirls add at an OpenAPI or GraphQL spec. Typed actions for any API you hold credentials for, today.

acme · integrations
terminal
~/acme $swirls add linear
✓ 12 typed actions · scopes and schemas included
 
~/acme $swirls add https://api.acme.dev/openapi.json
◆ Fetched spec · 38 operations
✓ 6 typed actions · generated from spec