# Liara OpenAPI Docs - [Platform Core API](https://developers.liara.ir/pages/platform-core.md): Cross-service APIs for identity, teams, billing, and support on the Liara Cloud Platform - [Log in with a password](https://developers.liara.ir/platform-auth/login/log-in-with-a-password.md): Exchanges your email address (or phone number) and password for an API token. If two-factor authentication is enabled on your account, send the second factor in the same request. - [Send a one-time login code](https://developers.liara.ir/platform-auth/login/send-a-one-time-login-code.md): Sends a 6-digit login code by SMS (when you send `phone`) or by email (when you send `email`). The code is valid for 2 minutes. Exchange it for an API token with `POST /v1/login/verify-otp-token`. - [Log in with a one-time code](https://developers.liara.ir/platform-auth/login/log-in-with-a-one-time-code.md): Exchanges a login code from `POST /v1/login/send-otp-token` for an API token that's valid for 30 days. Use the same `email` or `phone` the code was sent to. If two-factor authentication is enabled on your account, send the second factor in the same request. - [Create an account](https://developers.liara.ir/platform-auth/registration/create-an-account.md): Creates a personal account and returns an API token for it. Before you can create services or API tokens, finish verifying the account (see the Verification endpoints and `isVerified` in `GET /v1/me`). - [Request a password reset code](https://developers.liara.ir/platform-auth/password/request-a-password-reset-code.md): Sends a 6-digit password reset code by email or SMS. Use it with `POST /v1/password/reset`. Email codes are valid for 3 minutes, SMS codes for 2 minutes. - [Reset a forgotten password](https://developers.liara.ir/platform-auth/password/reset-a-forgotten-password.md): Sets a new password using the code from `POST /v1/password/forgot`. Every API token issued before the reset stops working; log in again to get a new one. - [Change your password](https://developers.liara.ir/platform-auth/password/change-your-password.md): Changes the password of the logged-in account. Prove it's you either with `currentPassword`, or with an `email` or `phone` of your account that you verified within the last hour. Every API token issued before the change stops working; use the token in the response from now on. - [Send a password change code](https://developers.liara.ir/platform-auth/password/send-a-password-change-code.md): Sends a 6-digit code to your account's verified email address or phone number, so you can change your password without the current one. Use it with `POST /v1/password/change/verify-otp-token`. Email codes are valid for 3 minutes, SMS codes for 2 minutes. - [Change your password with a code](https://developers.liara.ir/platform-auth/password/change-your-password-with-a-code.md): Sets a new password using the code from `POST /v1/password/change/send-otp-token`. Every API token issued before the change stops working; use the token in the response from now on. - [Create an API token](https://developers.liara.ir/platform-auth/api-tokens/create-an-api-token.md): Issues a new API token for your account. Existing tokens keep working. Tokens always belong to you, not to a team; to work with a team's resources, add the `teamID` query parameter to each request. Your account must be verified (see `isVerified` in `GET /v1/me`). - [Get the current user](https://developers.liara.ir/platform-auth/account/get-the-current-user.md): Returns your profile, verification status and billing contact details, plus the database versions you can choose from. With `teamID`, it also returns the team's profile and your role and permissions in that team. - [Get your subscription](https://developers.liara.ir/platform-auth/account/get-your-subscription.md): Returns the current subscription plan of your personal account, with the number of technical support tickets opened in the current period. `currentSubscriptionPlan` is an empty object if the account has never had a subscription. - [List your git integrations](https://developers.liara.ir/platform-auth/account/list-your-git-integrations.md): Lists the git provider accounts (currently GitHub) connected to your personal account, and the app installations on them that give access to repositories. - [Set your full name](https://developers.liara.ir/platform-auth/account/set-your-full-name.md): Sets the full name on your account. The name must be written in Persian letters. - [Save billing contact details](https://developers.liara.ir/platform-auth/account/save-billing-contact-details.md): Saves the contact details used on your invoices, as a real person or as a legal entity. With `teamID`, it saves the team's details; this needs billing permission in the team. - [Turn invoice issuing on or off](https://developers.liara.ir/platform-auth/account/turn-invoice-issuing-on-or-off.md): Controls whether monthly billing invoices are issued for the account. Once set to `false`, it can't be turned back on. With `teamID`, it applies to the team; this needs billing permission in the team. - [Get two-factor authentication status](https://developers.liara.ir/platform-auth/two-factor-authentication/get-two-factor-authentication-status.md): Shows whether two-factor authentication is enabled on your account and when a second factor was last verified. - [Start two-factor authentication setup](https://developers.liara.ir/platform-auth/two-factor-authentication/start-two-factor-authentication-setup.md): Generates a new authenticator secret and a QR code for it. Add it to an authenticator app, then confirm with `POST /v1/two-fa`. Codes are 6 digits and change every 30 seconds. - [Enable two-factor authentication](https://developers.liara.ir/platform-auth/two-factor-authentication/enable-two-factor-authentication.md): Turns on two-factor authentication with the secret from `POST /v1/two-fa/config` and a current code from your authenticator app. Returns 8 single-use recovery codes; store them safely, they aren't shown again. Your account must be verified. - [Disable two-factor authentication](https://developers.liara.ir/platform-auth/two-factor-authentication/disable-two-factor-authentication.md): Turns off two-factor authentication on your account. - [Replace recovery codes](https://developers.liara.ir/platform-auth/two-factor-authentication/replace-recovery-codes.md): Generates 8 new single-use recovery codes. Your previous recovery codes stop working. - [Verify a second factor](https://developers.liara.ir/platform-auth/two-factor-authentication/verify-a-second-factor.md): Checks an authenticator code or a recovery code for your account and records the verification time (`lastTwoFAVerifiedAt`). A recovery code can only be used once. If two-factor authentication isn't enabled, the request succeeds without checking anything. - [Send an email verification code](https://developers.liara.ir/platform-auth/verification/send-an-email-verification-code.md): Emails a 6-digit code to verify an address. Confirm it with `POST /v1/verify-email` within 3 minutes. - [Verify an email address](https://developers.liara.ir/platform-auth/verification/verify-an-email-address.md): Confirms a code from `POST /v1/send-email-token`. Verifying your current address opens a 5-minute window to change it; verifying a new address makes it your account email. A newly verified address may also be added as an email notification channel. - [Send a phone verification code](https://developers.liara.ir/platform-auth/verification/send-a-phone-verification-code.md): Starts verifying a phone number, together with your national code. Confirm it with `POST /v1/save-info` within 2 minutes. The phone number must be registered to the national code you send. - [Confirm a phone verification code](https://developers.liara.ir/platform-auth/verification/confirm-a-phone-verification-code.md): Confirms a code from `POST /v1/send-phone-token`. - [List your teams](https://developers.liara.ir/platform-teams/teams/list-your-teams.md): Lists the teams you're a member of. - [Create a team](https://developers.liara.ir/platform-teams/teams/create-a-team.md): Creates a team with you as its creator, in the built-in مالک role. The team starts with the built-in roles, and with your email address and phone number as notification channels. Your account must be verified. - [Delete a team](https://developers.liara.ir/platform-teams/teams/delete-a-team.md): Deletes a team. Only the team creator can do this, and it needs the `team.manage` permission. The team must have no resources, a balance of zero or less, and no charges in the current calendar month (Solar Hijri calendar). All members, roles, invitations and permissions are removed. - [Rename a team](https://developers.liara.ir/platform-teams/teams/rename-a-team.md): Changes the team's name. Only the team creator can do this, and it needs the `team.manage` permission. URL-encode the new name. - [Transfer team ownership](https://developers.liara.ir/platform-teams/teams/transfer-team-ownership.md): Makes another member the team creator. Only the current team creator can do this, and it needs the `team.manage` permission. The new creator must already have the same role as you. This can be done only once per team. - [List pending invitations](https://developers.liara.ir/platform-teams/invitations/list-pending-invitations.md): Lists the team's invitations that haven't been accepted yet. Needs the `team.operate` or `team.manage` permission. - [Invite someone to a team](https://developers.liara.ir/platform-teams/invitations/invite-someone-to-a-team.md): Emails an invitation to join the team with the given role, and returns the invitation link. The link is valid for 3 days and only works for the account with the invited email address. Needs the `team.operate` or `team.manage` permission. - [Cancel an invitation](https://developers.liara.ir/platform-teams/invitations/cancel-an-invitation.md): Cancels a pending invitation; its link stops working. Needs the `team.operate` or `team.manage` permission. - [Preview an invitation](https://developers.liara.ir/platform-teams/invitations/preview-an-invitation.md): Shows which team and role an invitation is for, without accepting it. The invitation must be for your account's email address. Your account must be verified. - [Accept an invitation](https://developers.liara.ir/platform-teams/invitations/accept-an-invitation.md): Joins the team with the role from the invitation. The invitation must be for your account's email address. Your account must be verified. - [List team members](https://developers.liara.ir/platform-teams/members/list-team-members.md): Lists the team's members and their roles. Any member can call this. - [Remove a member](https://developers.liara.ir/platform-teams/members/remove-a-member.md): Removes a member from the team. Their resource permissions are revoked, and git repositories they connected to the team's apps are disconnected. The team creator can't be removed. Needs the `team.manage` permission. - [Leave a team](https://developers.liara.ir/platform-teams/members/leave-a-team.md): Removes you from the team. Your resource permissions are revoked, and git repositories you connected to the team's apps are disconnected. The team creator can't leave; transfer ownership first. - [Change a member's role](https://developers.liara.ir/platform-teams/members/change-a-members-role.md): Gives a member a different role. The team creator's role can't be changed. Needs the `team.manage` permission. - [List roles](https://developers.liara.ir/platform-teams/roles/list-roles.md): Lists the team's built-in and custom roles with their permissions. Needs the `team.manage` permission. - [Create a custom role](https://developers.liara.ir/platform-teams/roles/create-a-custom-role.md): Creates a role with the permissions you choose. Use permissions that `GET /v2/teams/permissions` lists with `availableForRBAC: true`, at most one per resource type. Needs the `team.manage` permission. - [Delete a custom role](https://developers.liara.ir/platform-teams/roles/delete-a-custom-role.md): Deletes a custom role. Built-in roles can't be deleted, and a role can't be deleted while a member has it. Needs the `team.manage` permission. - [List all permissions](https://developers.liara.ir/platform-teams/roles/list-all-permissions.md): Lists every permission, and whether it can be used in custom roles (`availableForRBAC`) or assigned on a specific resource (`availableForDAC`). - [List resource permissions](https://developers.liara.ir/platform-teams/resource-permissions/list-resource-permissions.md): Lists the resource permissions given to the team's members, with the member and resource each one applies to. Needs the `team.manage` permission. - [Give a member access to a resource](https://developers.liara.ir/platform-teams/resource-permissions/give-a-member-access-to-a-resource.md): Gives a member one permission on one of the team's resources. Use a permission that `GET /v2/teams/permissions` lists with `availableForDAC: true`. A member can have only one permission per resource; revoke it before assigning a different one. The team creator already has full access and can't be as… - [Revoke a resource permission](https://developers.liara.ir/platform-teams/resource-permissions/revoke-a-resource-permission.md): Removes a resource permission from a member. Needs the `team.manage` permission. - [Get balance and billing details](https://developers.liara.ir/platform-billing/balance-&-usage/get-balance-and-billing-details.md): Returns your balance and billing contact details. With `teamID`, it also returns the team's, if your role has a billing permission there. - [Get current cost](https://developers.liara.ir/platform-billing/balance-&-usage/get-current-cost.md): Estimates what your current services cost per hour, day, month and year, at their current plans. With `teamID`, this needs the `billing.manage` permission. - [Get cost by service](https://developers.liara.ir/platform-billing/balance-&-usage/get-cost-by-service.md): Breaks down the hourly and monthly cost of each of your current services, with totals. With `teamID`, this needs the `billing.manage` permission. - [Count your services](https://developers.liara.ir/platform-billing/balance-&-usage/count-your-services.md): Counts your services by type. With `teamID`, it counts the team's services that you have access to. - [List payments](https://developers.liara.ir/platform-billing/payments/list-payments.md): Lists all your completed and failed payments, newest first. With `teamID`, this needs the `billing.manage` permission. - [Add credit](https://developers.liara.ir/platform-billing/payments/add-credit.md): Starts an online payment to add credit to your balance. Send the user's browser to the returned `url`, using `method` and `params`, to complete the payment. When it succeeds, the amount is added to the balance. - [Get the minimum payment for frozen mail servers](https://developers.liara.ir/platform-billing/payments/get-the-minimum-payment-for-frozen-mail-servers.md): Returns the smallest payment that reactivates your frozen mail servers, or `0` if none are frozen. Your account must be verified. With `teamID`, this needs the `billing.manage` permission. - [List monthly invoices](https://developers.liara.ir/platform-billing/invoices-&-receipts/list-monthly-invoices.md): Lists your monthly billing invoices, newest first. With `teamID`, this needs the `billing.manage` permission. - [Get a monthly invoice](https://developers.liara.ir/platform-billing/invoices-&-receipts/get-a-monthly-invoice.md): Returns a monthly billing invoice with its line items. With `teamID`, this needs the `billing.manage` permission. - [Get a payment receipt](https://developers.liara.ir/platform-billing/invoices-&-receipts/get-a-payment-receipt.md): Returns the receipt of a successful payment. Available for payments with `paymentVersion: 2`. With `teamID`, this needs the `billing.manage` permission. - [Get a payment invoice](https://developers.liara.ir/platform-billing/invoices-&-receipts/get-a-payment-invoice.md): Returns the invoice of an older successful payment (one with `paymentVersion: 1` and `hasInvoice: true` in `GET /v1/payments`). Newer payments have a receipt instead. With `teamID`, this needs the `billing.manage` permission. - [List subscription history](https://developers.liara.ir/platform-billing/subscription/list-subscription-history.md): Lists the account's subscription plans, newest first, including a scheduled plan change if there is one (it has `subscriptionPlanReservation`). The current plan also includes the number of technical tickets opened in the current period. With `teamID`, it lists the team's subscriptions. - [Subscribe or change plan](https://developers.liara.ir/platform-billing/subscription/subscribe-or-change-plan.md): Subscribes the account to a plan, or changes its current plan. With `teamID`, it applies to the team and needs the `team.operate` or `team.manage` permission. - [Cancel a scheduled plan change](https://developers.liara.ir/platform-billing/subscription/cancel-a-scheduled-plan-change.md): Cancels a plan change scheduled by `POST /v1/subscription`, before it takes effect. With `teamID`, this needs the `team.operate` or `team.manage` permission. - [List your discount codes](https://developers.liara.ir/platform-billing/discount-codes/list-your-discount-codes.md): Lists the discount codes on your account, with the services they're applied to. With `teamID`, this needs the `billing.manage` permission. - [Check a discount code](https://developers.liara.ir/platform-billing/discount-codes/check-a-discount-code.md): Checks that a discount code exists, hasn't been used yet, is still valid, and is for the given kind of service, and returns its terms. With `teamID`, this needs the `billing.manage` permission. - [Apply a discount code](https://developers.liara.ir/platform-billing/discount-codes/apply-a-discount-code.md): Applies a discount code to one of your services. A code can be applied to only one service, and a service can have only one active code. Once applied, the discount lasts for the code's `timespan` in days. With `teamID`, this needs the `billing.manage` permission. - [List tickets](https://developers.liara.ir/platform-support/tickets/list-tickets.md): Lists your tickets, most recently updated first. By default only tickets updated in the last 14 days are returned; send `status=ALL` to get all of them. - [Open a ticket](https://developers.liara.ir/platform-support/tickets/open-a-ticket.md): Opens a support ticket with a first message. Upload any files first with `POST /v1/attachments` and pass their IDs in `attachments`. - [Get a ticket](https://developers.liara.ir/platform-support/tickets/get-a-ticket.md): Returns a ticket with all its messages, newest first. - [Reply to a ticket](https://developers.liara.ir/platform-support/tickets/reply-to-a-ticket.md): Adds a message to one of your tickets. A closed ticket is reopened, and an answered ticket goes back to `OPEN`. - [Close a ticket](https://developers.liara.ir/platform-support/tickets/close-a-ticket.md): Closes one of your tickets. Replying to it later reopens it. - [Rate a ticket](https://developers.liara.ir/platform-support/tickets/rate-a-ticket.md): Rates the support you got on a ticket. Each ticket can be rated once. - [List support departments](https://developers.liara.ir/platform-support/tickets/list-support-departments.md): Lists the support departments. The response can include additional fields not listed here. - [Upload attachments](https://developers.liara.ir/platform-support/attachments/upload-attachments.md): Uploads up to 3 files, each up to 5 MB, to attach to a ticket or a reply. Returns their IDs; pass them in `attachments` when you open a ticket or reply. - [Get an attachment download link](https://developers.liara.ir/platform-support/attachments/get-an-attachment-download-link.md): Returns a temporary download link for an attachment. Use the attachment's `key` from `GET /v1/tickets/{ticketID}`. The link is valid for 12 hours. - [List notifications](https://developers.liara.ir/platform-support/notifications/list-notifications.md): Lists all your notifications, newest first. With `teamID`, it lists the team's notifications. - [Mark all notifications as read](https://developers.liara.ir/platform-support/notifications/mark-all-notifications-as-read.md): Marks all your personal notifications as read, except those with `canMarkAsRead: false`. - [Mark a notification as read](https://developers.liara.ir/platform-support/notifications/mark-a-notification-as-read.md): Marks one of your personal notifications as read. Notifications with `canMarkAsRead: false` stay unread. The request succeeds even if the notification doesn't exist. - [Set the low-credit alert threshold](https://developers.liara.ir/platform-support/notifications/set-the-low-credit-alert-threshold.md): Sets the balance below which you get low-credit notifications, or resets it to the default (20,000 Toman). With `teamID`, it applies to the team and needs the `billing.manage` permission. - [List notification channels](https://developers.liara.ir/platform-support/notification-channels/list-notification-channels.md): Lists your notification channels, newest first. With `teamID`, this needs the `team.operate` or `team.manage` permission. - [Add a notification channel](https://developers.liara.ir/platform-support/notification-channels/add-a-notification-channel.md): Adds a channel that receives the notification types you choose. - [Get a notification channel](https://developers.liara.ir/platform-support/notification-channels/get-a-notification-channel.md): Returns one of your notification channels. With `teamID`, this needs the `team.operate` or `team.manage` permission. - [Change a channel's notifications](https://developers.liara.ir/platform-support/notification-channels/change-a-channels-notifications.md): Replaces the notification types sent to a channel. `type` must match the channel's type. Your account must be verified. With `teamID`, this needs the `team.manage` permission. - [Delete a notification channel](https://developers.liara.ir/platform-support/notification-channels/delete-a-notification-channel.md): Deletes one of your notification channels. The request succeeds even if the channel doesn't exist. With `teamID`, this needs the `team.manage` permission. - [Send an SMS channel verification code](https://developers.liara.ir/platform-support/notification-channels/send-an-sms-channel-verification-code.md): Sends a 6-digit code by SMS to confirm a phone number for a new SMS channel. Use it within 2 minutes as `metaData.token` in `POST /v1/channels`. Your account must be verified. With `teamID`, this needs the `team.manage` permission. - [Send an email channel verification code](https://developers.liara.ir/platform-support/notification-channels/send-an-email-channel-verification-code.md): Emails a 6-digit code to confirm an address for a new email channel. Use it within 3 minutes as `metaData.token` in `POST /v1/channels`. Your account must be verified. With `teamID`, this needs the `team.manage` permission. - [PaaS API](https://developers.liara.ir/pages/paas.md): Platform as a Service API for deploying and managing applications - [List apps](https://developers.liara.ir/paas/apps/list-apps.md): Lists your apps, newest first. With `teamID`, it lists the team's apps you have access to. - [Create an app](https://developers.liara.ir/paas/apps/create-an-app.md): Creates an app in one of your networks. New apps get a few default environment variables for their platform. The app's name is also its default subdomain (`.liara.run`) and must be unique across Liara. - [Check if an app name is available](https://developers.liara.ir/paas/apps/check-if-an-app-name-is-available.md): Checks whether a name can be used for a new app. - [Get an app](https://developers.liara.ir/paas/apps/get-an-app.md): Returns an app's details, including its environment variables and settings. Team permission: any project permission. - [Delete an app](https://developers.liara.ir/paas/apps/delete-an-app.md): Deletes an app. Team permission: `manage`. - [Unfreeze an app](https://developers.liara.ir/paas/apps/unfreeze-an-app.md): Reactivates an app that was frozen, for example because the balance ran out. Your balance must be high enough to cover the app. Team permission: `operate` or `manage`. - [Get the npm audit report](https://developers.liara.ir/paas/apps/get-the-npm-audit-report.md): Returns the `npm audit` report from the app's latest build. A report exists only for `node` apps deployed with `platformConfig.npmAudit` set to `true`. Team permission: `deploy`, `operate` or `manage`. - [Set environment variables](https://developers.liara.ir/paas/configuration/set-environment-variables.md): Replaces all of an app's environment variables with the list you send. If a key appears more than once, the last value wins. If the app has a successful release, it's redeployed with the new variables. Team permission: `operate` or `manage`. - [Change the app's port](https://developers.liara.ir/paas/configuration/change-the-apps-port.md): Redeploys the app's latest successful release with a new port. If the app has no successful release, nothing changes. Team permission: `operate` or `manage`. - [Set custom DNS servers](https://developers.liara.ir/paas/configuration/set-custom-dns-servers.md): Sets up to 4 DNS servers for the app to use. Send an empty list to go back to the defaults. Your bundle plan must support custom DNS. Team permission: `operate` or `manage`. - [Change the app's plan](https://developers.liara.ir/paas/configuration/change-the-apps-plan.md): Moves the app to another plan. If the app has been deployed, the new plan must have enough storage for the app's disks, and your balance must be high enough for the new plan. Team permission: `manage`. - [Change the app's bundle plan](https://developers.liara.ir/paas/configuration/change-the-apps-bundle-plan.md): Moves the app to another bundle plan. The bundle plan sets limits and features such as backups, log retention, deployments per day, domains, disks and FTP accounts, zero-downtime deployment and rollback. Moving to a bundle plan with lower limits fails if the app uses more than it allows. You can't m… - [Turn an app on or off](https://developers.liara.ir/paas/configuration/turn-an-app-on-or-off.md): Turns the app off (`scale: 0`) or on (`scale: 1`). Team permission: `manage`. - [Restart an app](https://developers.liara.ir/paas/configuration/restart-an-app.md): Restarts a running app. Team permission: `manage`. - [Make the filesystem read-only](https://developers.liara.ir/paas/settings/make-the-filesystem-read-only.md): Makes the app's filesystem read-only, except for its disks. Your bundle plan must support this setting. Team permission: `operate` or `manage`. - [Make the filesystem writable](https://developers.liara.ir/paas/settings/make-the-filesystem-writable.md): Makes the app's whole filesystem writable. Your bundle plan must support this setting. Team permission: `operate` or `manage`. - [Turn on the default subdomain](https://developers.liara.ir/paas/settings/turn-on-the-default-subdomain.md): Makes the app reachable at `.liara.run`. Team permission: `operate` or `manage`. - [Turn off the default subdomain](https://developers.liara.ir/paas/settings/turn-off-the-default-subdomain.md): Stops serving the app at `.liara.run`. Team permission: `operate` or `manage`. - [Turn on zero-downtime deployment](https://developers.liara.ir/paas/settings/turn-on-zero-downtime-deployment.md): Keeps the current release running until a new one is ready. Your bundle plan must support zero-downtime deployment. Team permission: `operate` or `manage`. - [Turn off zero-downtime deployment](https://developers.liara.ir/paas/settings/turn-off-zero-downtime-deployment.md): Turns off zero-downtime deployment. Your bundle plan must support zero-downtime deployment. Team permission: `operate` or `manage`. - [Turn on a fixed outbound IP](https://developers.liara.ir/paas/settings/turn-on-a-fixed-outbound-ip.md): Gives the app's outgoing traffic a fixed IP address, so you can allow it in other services' firewalls. Team permission: `operate` or `manage`. - [Turn off the fixed outbound IP](https://developers.liara.ir/paas/settings/turn-off-the-fixed-outbound-ip.md): Turns off the app's fixed outbound IP. Team permission: `operate` or `manage`. - [Upload source code](https://developers.liara.ir/paas/deployments/upload-source-code.md): Uploads your source code as a single `.tar.gz` or `.zip` archive, to deploy with `POST /v2/projects/{project_id}/releases`. The request must include a `Content-Length` header. The maximum size depends on your bundle plan. Team permission: `deploy`, `operate` or `manage`. - [Deploy a release](https://developers.liara.ir/paas/deployments/deploy-a-release.md): Starts a new release of the app, from an uploaded `sourceID` or, for `docker` apps, from an `image`. Send exactly one of them. Releases that are still building or deploying are cancelled. Source releases are built first; image releases are deployed directly. - [List releases](https://developers.liara.ir/paas/deployments/list-releases.md): Lists the app's releases, newest first by default. Team permission: any project permission. - [Get the running release](https://developers.liara.ir/paas/deployments/get-the-running-release.md): Returns the release that's running now, or `null` if there is none. Team permission: any project permission. - [Get a release](https://developers.liara.ir/paas/deployments/get-a-release.md): Returns a release's state. Use it to follow a deployment until it finishes. Team permission: any project permission. - [Get build logs](https://developers.liara.ir/paas/deployments/get-build-logs.md): Returns up to 20 lines of a release's build output, with the release's current state. To follow a build, call it repeatedly with `since` set to the `createdAt` of the last line you received. Team permission: any project permission. - [Cancel a build](https://developers.liara.ir/paas/deployments/cancel-a-build.md): Cancels a release that's still waiting or building. Nothing happens if it's already past that stage. Team permission: `deploy`, `operate` or `manage`. - [Roll back to a release](https://developers.liara.ir/paas/deployments/roll-back-to-a-release.md): Redeploys an earlier successful release from the last 6 months, with the environment variables it had. The app must be active and your bundle plan must support rollback. Team permission: `deploy`, `operate` or `manage`. - [Get a release's source code link](https://developers.liara.ir/paas/deployments/get-a-releases-source-code-link.md): Returns a temporary link to download the source archive a release was built from. The link is valid for 1 hour. Team permission: any project permission. - [Get app logs](https://developers.liara.ir/paas/logs-metrics-&-events/get-app-logs.md): Returns up to 100 lines of the app's output, newest first by default. How far back you can read depends on your bundle plan's log retention. To page through logs, move `start` or `end` past the last line you received. Team permission: any project permission. - [Get log volume over time](https://developers.liara.ir/paas/logs-metrics-&-events/get-log-volume-over-time.md): Returns how many log lines the app wrote in each 5-minute window. Team permission: any project permission. - [Get current resource usage](https://developers.liara.ir/paas/logs-metrics-&-events/get-current-resource-usage.md): Returns the app's current CPU and memory usage per instance, and the usage of each of its disks. Team permission: any project permission. - [Get resource usage over time](https://developers.liara.ir/paas/logs-metrics-&-events/get-resource-usage-over-time.md): Returns one resource metric over time, per instance. The longer the range, the further apart the data points. How far back you can go depends on your bundle plan. Team permission: any project permission. - [Get app events](https://developers.liara.ir/paas/logs-metrics-&-events/get-app-events.md): Returns up to 12 lifecycle events of the app's instances, such as started, stopped, restarted or out of memory. You can read events from the last 7 days. Team permission: any project permission. - [List networks](https://developers.liara.ir/paas/networks/list-networks.md): Lists your private networks, newest first, with how many apps and databases are in each. With `teamID`, it lists the team's networks. - [Create a network](https://developers.liara.ir/paas/networks/create-a-network.md): Creates a private network. Apps and databases in the same network can reach each other privately. The number of networks per account is limited. Your account must be verified. - [Start connecting your GitHub account](https://developers.liara.ir/paas-git-oneclick/github-account/start-connecting-your-github-account.md): Returns a GitHub sign-in link. Send the user there; after they approve, GitHub redirects to `callback_url` with a `code`. Finish with `POST /v1/git-provider-integration/{provider}` within 1 minute, using the returned `githubOAuthCSRFToken`. - [Finish connecting your GitHub account](https://developers.liara.ir/paas-git-oneclick/github-account/finish-connecting-your-github-account.md): Connects the GitHub account the user signed in with, using the `code` GitHub sent to your callback URL. The response can include additional fields not listed here. - [Disconnect your GitHub account](https://developers.liara.ir/paas-git-oneclick/github-account/disconnect-your-github-account.md): Disconnects your GitHub account, removes the Liara GitHub app from your personal GitHub account, and unlinks repositories from your apps. - [Refresh GitHub account details](https://developers.liara.ir/paas-git-oneclick/github-account/refresh-github-account-details.md): Refreshes your connected GitHub account's details (such as username, avatar and email) in the background. It does nothing if they were refreshed in the last minute or the connection isn't working. - [List your GitHub organizations](https://developers.liara.ir/paas-git-oneclick/repositories/list-your-github-organizations.md): Lists the GitHub organizations your connected account belongs to, as returned by GitHub. The Liara GitHub app must be installed on your personal GitHub account. - [Get the GitHub app installation link](https://developers.liara.ir/paas-git-oneclick/repositories/get-the-github-app-installation-link.md): Returns, as plain text, the link to install the Liara GitHub app on your GitHub account or an organization. - [List repositories](https://developers.liara.ir/paas-git-oneclick/repositories/list-repositories.md): Lists the repositories the Liara GitHub app can access on your personal GitHub account, or on an organization with `organizationID`. - [List a repository's branches](https://developers.liara.ir/paas-git-oneclick/repositories/list-a-repositorys-branches.md): Lists a repository's branch names. - [Get the app's linked repository](https://developers.liara.ir/paas-git-oneclick/app-repository/get-the-apps-linked-repository.md): Returns the repository linked to an app and its deploy settings. Team permission: `operate` or `manage`. - [Change deploy settings](https://developers.liara.ir/paas-git-oneclick/app-repository/change-deploy-settings.md): Changes the branch and automatic deploy settings of an app's linked repository. Works on apps in your personal account. - [Link a repository to an app](https://developers.liara.ir/paas-git-oneclick/app-repository/link-a-repository-to-an-app.md): Links a repository to an app. With `autoDeploy`, new commits on the chosen branch are deployed automatically; with `checkSuite`, deploys wait for the commit's checks on GitHub to finish. An app can have only one linked repository. Team permission: `operate` or `manage`. - [Unlink the repository](https://developers.liara.ir/paas-git-oneclick/app-repository/unlink-the-repository.md): Removes the link between an app and its repository. Team permission: `operate` or `manage`. - [Deploy the latest commit](https://developers.liara.ir/paas-git-oneclick/app-repository/deploy-the-latest-commit.md): Deploys the latest commit on the linked repository's branch. Follow the deployment with the release endpoints in Apps & Deployments. Works on apps in your personal account. - [Get a failed automatic deployment](https://developers.liara.ir/paas-git-oneclick/app-repository/get-a-failed-automatic-deployment.md): Explains why an automatic deployment from a linked repository failed. The IDs come from the failure link shown on the commit in GitHub. Team permission: `operate` or `manage`. - [List one-click apps](https://developers.liara.ir/paas-git-oneclick/one-click-apps/list-one-click-apps.md): Lists the one-click app catalog. No API token is needed. - [Get a one-click app](https://developers.liara.ir/paas-git-oneclick/one-click-apps/get-a-one-click-app.md): Returns a one-click app, including `spec`, a YAML document describing the apps it's made of and how to deploy them. No API token is needed. - [List domains](https://developers.liara.ir/paas-domains-disks/domains/list-domains.md): Lists your domains, newest first. Without `type`, all of your domains are returned; with `teamID`, only app domains are returned unless you send `type=BUCKET`, and only for resources you have access to. - [Add a domain](https://developers.liara.ir/paas-domains-disks/domains/add-a-domain.md): Adds a domain to an app or a bucket. It's `ACTIVE` right away if its root domain is already active on your account or is a zone in Liara DNS; otherwise it's `PENDING` until you verify it. The number of domains per app depends on the app's bundle plan, and wildcard domains need a bundle plan with unl… - [Get a domain](https://developers.liara.ir/paas-domains-disks/domains/get-a-domain.md): Returns a domain, including the `verificationCode` and `target` you need for its DNS records. The response can include additional fields not listed here. With `teamID`, you need any permission on the app or bucket. - [Check a domain's DNS records](https://developers.liara.ir/paas-domains-disks/domains/check-a-domains-dns-records.md): Checks the domain's ownership, routing and certificate records, saves the results (`status`, `CNameRecord`, `acmeRecord`, `behindCdn`) and returns the updated domain. The response can include additional fields not listed here. With `teamID`, you need any permission on the app or bucket. - [Remove a domain](https://developers.liara.ir/paas-domains-disks/domains/remove-a-domain.md): Removes a domain from its app or bucket. With `teamID`, you need `operate` or `manage` on the app or bucket. - [Request an SSL certificate](https://developers.liara.ir/paas-domains-disks/domain-ssl-&-redirects/request-an-ssl-certificate.md): Requests a free SSL certificate for a domain. The certificate is issued in the background; follow `certificatesStatus` on the domain. With `teamID`, you need `operate` or `manage` on the app or bucket. - [Turn off SSL](https://developers.liara.ir/paas-domains-disks/domain-ssl-&-redirects/turn-off-ssl.md): Turns off SSL for a domain and stops renewing its certificate. With `teamID`, you need `operate` or `manage` on the app or bucket. - [Get certificate history](https://developers.liara.ir/paas-domains-disks/domain-ssl-&-redirects/get-certificate-history.md): Lists past attempts to issue or renew the domain's certificate, newest first. With `teamID`, you need any permission on the app or bucket. - [Redirect a domain](https://developers.liara.ir/paas-domains-disks/domain-ssl-&-redirects/redirect-a-domain.md): Makes an app domain redirect to another URL, or removes the redirect when `redirectTo` is empty. Only for app domains. With `teamID`, you need `operate` or `manage` on the app. - [List an app's disks](https://developers.liara.ir/paas-domains-disks/disks/list-an-apps-disks.md): Lists an app's disks and where they're mounted in its latest successful release. Team permission: any project permission. - [Create a disk](https://developers.liara.ir/paas-domains-disks/disks/create-a-disk.md): Creates a disk for an app. Mount it by listing it in `disks` when you deploy. The total size of an app's disks can't exceed its plan's storage, and the number of disks depends on its bundle plan. Team permission: `manage`. - [Get a disk](https://developers.liara.ir/paas-domains-disks/disks/get-a-disk.md): Returns a disk and where it's mounted in the app's latest successful release. Team permission: any project permission. - [Delete a disk](https://developers.liara.ir/paas-domains-disks/disks/delete-a-disk.md): Deletes a disk and its data. A disk that's mounted in the app's latest successful release can't be deleted; deploy without it first. Team permission: `manage`. - [Grow a disk](https://developers.liara.ir/paas-domains-disks/disks/grow-a-disk.md): Makes a disk larger. Disks can't be shrunk. If the disk is mounted, turn the app off first (see `POST /v1/projects/{project_id}/actions/scale`). Team permission: `operate` or `manage`. - [Get disk usage](https://developers.liara.ir/paas-domains-disks/disks/get-disk-usage.md): Returns how full a disk is. Team permission: any project permission. - [List disk backups](https://developers.liara.ir/paas-domains-disks/disk-backups/list-disk-backups.md): Lists a disk's backups, newest first. How often backups are made and how long they're kept depends on the app's bundle plan. Team permission: any project permission. - [Back up a disk now](https://developers.liara.ir/paas-domains-disks/disk-backups/back-up-a-disk-now.md): Starts a manual backup of a disk. The app must have been deployed, and its bundle plan must support manual backups; the number of manual backups per hour also depends on the bundle plan. Team permission: `operate` or `manage`. - [Get a backup download link](https://developers.liara.ir/paas-domains-disks/disk-backups/get-a-backup-download-link.md): Returns a temporary link to download a disk backup. The link is valid for 12 hours. Team permission: any project permission. - [Restore a disk backup](https://developers.liara.ir/paas-domains-disks/disk-backups/restore-a-disk-backup.md): Restores one of a disk's backups onto a disk of the same app or of another of your apps. The target disk's current contents are replaced. Team permission: `manage`. - [List a disk's FTP accounts](https://developers.liara.ir/paas-domains-disks/ftp-access/list-a-disks-ftp-accounts.md): Lists a disk's FTP accounts with their passwords, and the host to connect to. The app must have been deployed. Team permission: `operate` or `manage`. - [Create an FTP account](https://developers.liara.ir/paas-domains-disks/ftp-access/create-an-ftp-account.md): Creates an FTP account for a disk and returns its generated password. Usernames are unique across Liara. The number of accounts per disk depends on the app's bundle plan. Team permission: `operate` or `manage`. - [Delete an FTP account](https://developers.liara.ir/paas-domains-disks/ftp-access/delete-an-ftp-account.md): Deletes one of your FTP accounts. Team permission: `operate` or `manage`. - [Check if an FTP username is available](https://developers.liara.ir/paas-domains-disks/ftp-access/check-if-an-ftp-username-is-available.md): Checks whether a username can be used for a new FTP account. - [DBaaS API](https://developers.liara.ir/pages/dbaas.md): Database as a Service API for managing cloud databases - [List databases](https://developers.liara.ir/dbaas/databases/list-databases.md): Lists your databases, newest first. With `teamID`, it lists the team's databases you have access to. - [Create a database](https://developers.liara.ir/dbaas/databases/create-a-database.md): Creates a database in one of your networks. To start it from a backup of another of your databases of the same type, send `backupSourceId` and `backupToRestoreName` (only for `mysql`, `mariadb`, `postgres` and `mongodb`). - [List database versions](https://developers.liara.ir/dbaas/databases/list-database-versions.md): Lists the version labels available for each database type. No API token is needed. `GET /v1/me` also returns the versions with their `value`s, which you use when creating a database. - [Check if a hostname is available](https://developers.liara.ir/dbaas/databases/check-if-a-hostname-is-available.md): Checks whether a hostname can be used for a new database. - [Get a database](https://developers.liara.ir/dbaas/databases/get-a-database.md): Returns a database with its connection details and settings. The password is included once the database has been deployed. The response can include additional fields not listed here. Team permission: `view`, `operate` or `manage`. - [Delete a database](https://developers.liara.ir/dbaas/databases/delete-a-database.md): Deletes a database. Only running, frozen or failed databases can be deleted. Team permission: `manage`. - [Unfreeze a database](https://developers.liara.ir/dbaas/databases/unfreeze-a-database.md): Reactivates a frozen database. Your balance must be high enough to cover it. Team permission: `operate` or `manage`. - [Change the database's plan](https://developers.liara.ir/dbaas/configuration/change-the-databases-plan.md): Moves a running database to another plan that supports its type and has at least as much storage. With `disk: true`, the disk also grows to the new plan's size; except for `mongodb`, turn the database off first (see `POST /v1/databases/{databaseID}/actions/scale`). Your balance must be high enough f… - [Change the database's bundle plan](https://developers.liara.ir/dbaas/configuration/change-the-databases-bundle-plan.md): Moves a running database to another bundle plan. The bundle plan sets backups, metrics retention, editable settings and public network access. Moving to one that doesn't allow a feature you use fails. You can't move to a cheaper bundle plan soon after moving to a more expensive one. Team permission:… - [Turn a database on or off](https://developers.liara.ir/dbaas/configuration/turn-a-database-on-or-off.md): Turns the database off (`scale: 0`) or on (`scale: 1`). Team permission: `manage`. - [Change database settings](https://developers.liara.ir/dbaas/configuration/change-database-settings.md): Changes engine settings for `mysql`, `mariadb` and `postgres` databases. Changing parameters (anything except the `postgis` and `pgvector` extensions) needs a bundle plan that allows it. Settings you send are merged with the current ones; send `null` to go back to the default. Team permission: `mana… - [Turn on public network access](https://developers.liara.ir/dbaas/configuration/turn-on-public-network-access.md): Makes the database reachable from the internet, on `network.node.host` and `port`. The change happens in the background. Your bundle plan must allow it. Team permission: `manage`. - [Turn off public network access](https://developers.liara.ir/dbaas/configuration/turn-off-public-network-access.md): Makes the database reachable only from its network. The change happens in the background. Your bundle plan must allow public network access. Team permission: `manage`. - [Reset the database password](https://developers.liara.ir/dbaas/configuration/reset-the-database-password.md): Replaces the database's password with a new random one, in the background. Read the new password with `GET /v1/databases/{databaseID}` once the operation succeeds (see `GET /v2/databases/{databaseID}/operations-status`). Only for running `mysql`, `mariadb`, `postgres` and `mongodb` databases. - [Switch MongoDB between standalone and replica set](https://developers.liara.ir/dbaas/configuration/switch-mongodb-between-standalone-and-replica-set.md): Switches a MongoDB database between standalone mode and single-node replica set mode. Team permission: `operate` or `manage`. - [Turn on the web control panel](https://developers.liara.ir/dbaas/configuration/turn-on-the-web-control-panel.md): Starts a web control panel for managing the database's data. Available for `mysql`, `mariadb`, `postgres`, `redis`, `elasticsearch` and `rabbitmq`. Follow `controlPanelSatus` in `GET /v1/databases/{databaseID}`. Team permission: `operate` or `manage`. - [List backups](https://developers.liara.ir/dbaas/backups/list-backups.md): Lists a database's backups, newest first. Not available for `elasticsearch` and `rabbitmq`. How often backups are made and how long they're kept depends on the bundle plan. Team permission: `view`, `operate` or `manage`. - [Back up a database now](https://developers.liara.ir/dbaas/backups/back-up-a-database-now.md): Starts a manual backup of a running database. The bundle plan must support manual backups, and the number per hour depends on the bundle plan. Follow it with `GET /v2/databases/{databaseID}/operations-status`. Team permission: `operate` or `manage`. - [Get a backup download link](https://developers.liara.ir/dbaas/backups/get-a-backup-download-link.md): Returns a temporary link to download a backup. The link is valid for 12 hours. Team permission: `view`, `operate` or `manage`. - [Import a SQL Server backup file](https://developers.liara.ir/dbaas/backups/import-a-sql-server-backup-file.md): Downloads a `.bak` file from a URL into an `mssql` database, so you can restore it. Follow it with `GET /v2/databases/{databaseID}/operations-status`. - [Import a ClickHouse backup file](https://developers.liara.ir/dbaas/backups/import-a-clickhouse-backup-file.md): Downloads a backup file from a URL into a `clickhouse` database, so you can restore it. Follow it with `GET /v2/databases/{databaseID}/operations-status`. Team permission: `operate` or `manage`. - [List background operations](https://developers.liara.ir/dbaas/metrics-&-events/list-background-operations.md): Lists the database's background operations from the last month, such as backups, password resets, disk resizes, restores and backup file imports, newest first. Team permission: `view`, `operate` or `manage`. - [Get current resource usage](https://developers.liara.ir/dbaas/metrics-&-events/get-current-resource-usage.md): Returns the database's current CPU, memory and disk usage. Team permission: `view`, `operate` or `manage`. - [Get resource usage over time](https://developers.liara.ir/dbaas/metrics-&-events/get-resource-usage-over-time.md): Returns one resource metric over time. The longer the range, the further apart the data points. How far back you can go depends on the bundle plan. Team permission: `view`, `operate` or `manage`. - [Get database events](https://developers.liara.ir/dbaas/metrics-&-events/get-database-events.md): Returns up to 100 lifecycle events of the database, such as started, stopped, restarted or out of memory. You can read events from the last 7 days. Team permission: `view`, `operate` or `manage`. - [Object Storage API](https://developers.liara.ir/pages/object-storage.md): Scalable object storage solution for storing and managing data - [List all Buckets](https://developers.liara.ir/object-storage/bucket/list-all-buckets.md): List all Bucket - [Create Bucket](https://developers.liara.ir/object-storage/bucket/create-bucket.md): creates a new bucket on an object storage - [list migration operation](https://developers.liara.ir/object-storage/bucket/list-migration-operation.md): list migration operation - [change Bucket Access Policy](https://developers.liara.ir/object-storage/bucket/change-bucket-access-policy.md): Change Bucket Access policy on an object storage ( public / private ) - [Upgrade Bucket](https://developers.liara.ir/object-storage/bucket/upgrade-bucket.md): Upgrade Bucket plan ( just make space bigger ) - [Get Single Buckets](https://developers.liara.ir/object-storage/bucket/get-single-buckets.md) - [Destroy Bucket](https://developers.liara.ir/object-storage/bucket/destroy-bucket.md): Delete Bucket on an object storage - [Check Bucket availability](https://developers.liara.ir/object-storage/bucket/check-bucket-availability.md): Check if you can create Bucket with specified Name. - [Migrating buckets](https://developers.liara.ir/object-storage/bucket/migrating-buckets.md): Move data from one bucket to another - [List storage service buckets](https://developers.liara.ir/object-storage/bucket/list-storage-service-buckets.md): List previous buckets of storage service in liara. - [Get List of Keys](https://developers.liara.ir/object-storage/key/get-list-of-keys.md) - [Create Keys](https://developers.liara.ir/object-storage/key/create-keys.md): Create access and secret key - [Get Key](https://developers.liara.ir/object-storage/key/get-key.md): Get a key - [Delete Key](https://developers.liara.ir/object-storage/key/delete-key.md): Delete access key - [Update key](https://developers.liara.ir/object-storage/key/update-key.md): Update buckets of key ( redefine ) - [Revoke secret key](https://developers.liara.ir/object-storage/key/revoke-secret-key.md): Revoke secret key - [Download Object](https://developers.liara.ir/object-storage/object/download-object.md): Return presigned url for download object - [Upload Object](https://developers.liara.ir/object-storage/object/upload-object.md): Return presigned url for download object - [List Objects](https://developers.liara.ir/object-storage/object/list-objects.md): Return list of objects ( max:50, min:1 ) - [Delete Object](https://developers.liara.ir/object-storage/object/delete-object.md): Delete an object from storage - [Get Stat Object](https://developers.liara.ir/object-storage/object/get-stat-object.md) - [Create Folder](https://developers.liara.ir/object-storage/folder/create-folder.md): Create Folder in Bucket - [Delete Folder](https://developers.liara.ir/object-storage/folder/delete-folder.md): Delete Folder in Bucket - [metrics summary](https://developers.liara.ir/object-storage/metrics/metrics-summary.md) - [hisotrical metrics](https://developers.liara.ir/object-storage/metrics/hisotrical-metrics.md) - [get statistic](https://developers.liara.ir/object-storage/metrics/get-statistic.md) - [DNS API](https://developers.liara.ir/pages/dns.md): DNS management API for zones and records - [List all zones](https://developers.liara.ir/dns/zone/list-all-zones.md): list all zones that user owns - [Create Zone](https://developers.liara.ir/dns/zone/create-zone.md): creates a new zone on dns server - [Get Zone](https://developers.liara.ir/dns/zone/get-zone.md): Get this zone, all dns records - [Delete Zone](https://developers.liara.ir/dns/zone/delete-zone.md): Deletes this zone, all dns records - [check nameserver](https://developers.liara.ir/dns/check-name-servers/check-nameserver.md): check nameserver of zone - [Get all dns record](https://developers.liara.ir/dns/dns-record/get-all-dns-record.md): Get all Dns Records on this zone - [Create dns record](https://developers.liara.ir/dns/dns-record/create-dns-record.md): Creates a new dns record, returns the dns record on creation - [Get dns record](https://developers.liara.ir/dns/dns-record/get-dns-record.md): Get Dns Record data on this zone - [edit dns record](https://developers.liara.ir/dns/dns-record/edit-dns-record.md): you can not edit type of dns record - [delete dns record](https://developers.liara.ir/dns/dns-record/delete-dns-record.md): Delete dns record from this zone - [Mail API](https://developers.liara.ir/pages/mail.md): Email delivery platform for incoming and outgoing mail - [get all mail servers](https://developers.liara.ir/mail/mails/get-all-mail-servers.md) - [create mail server](https://developers.liara.ir/mail/mails/create-mail-server.md) - [get single mail server](https://developers.liara.ir/mail/mails/get-single-mail-server.md) - [delete mail server](https://developers.liara.ir/mail/mails/delete-mail-server.md) - [edit mail server](https://developers.liara.ir/mail/mails/edit-mail-server.md) - [count number of sent mails every day](https://developers.liara.ir/mail/mails/count-number-of-sent-mails-every-day.md) - [mail server check dns status](https://developers.liara.ir/mail/mails/mail-server-check-dns-status.md) - [check if domain name is available](https://developers.liara.ir/mail/mails/check-if-domain-name-is-available.md) - [unfreeze mail server - If you had reserved a plan, it will be your new plan.](https://developers.liara.ir/mail/mails/unfreeze-mail-server--if-you-had-reserved-a-plan-it-will-be-your-new-plan.md) - [gain more info on recent usage](https://developers.liara.ir/mail/mails/gain-more-info-on-recent-usage.md) - [get credential to connect to mail server with SMTP](https://developers.liara.ir/mail/smtp/get-credential-to-connect-to-mail-server-with-smtp.md) - [generate credentials to connet mail server with SMTP](https://developers.liara.ir/mail/smtp/generate-credentials-to-connet-mail-server-with-smtp.md) - [revoke credentials to connect mail server with SMTP](https://developers.liara.ir/mail/smtp/revoke-credentials-to-connect-mail-server-with-smtp.md) - [delete smtp credential](https://developers.liara.ir/mail/smtp/delete-smtp-credential.md) - [get all mail accounts](https://developers.liara.ir/mail/accounts/get-all-mail-accounts.md) - [add mail account](https://developers.liara.ir/mail/accounts/add-mail-account.md) - [check if mail account is available](https://developers.liara.ir/mail/accounts/check-if-mail-account-is-available.md) - [delete mail account](https://developers.liara.ir/mail/accounts/delete-mail-account.md) - [get all inbound rules.](https://developers.liara.ir/mail/inboundrules/get-all-inbound-rules.md) - [add inbound rule.](https://developers.liara.ir/mail/inboundrules/add-inbound-rule.md) - [delete inbound rule.](https://developers.liara.ir/mail/inboundrules/delete-inbound-rule.md) - [get all mails](https://developers.liara.ir/mail/messages/get-all-mails.md) - [send a mail](https://developers.liara.ir/mail/messages/send-a-mail.md) - [get single mail](https://developers.liara.ir/mail/messages/get-single-mail.md) - [get single mail html](https://developers.liara.ir/mail/messages/get-single-mail-html.md) - [generate temporary access to email html](https://developers.liara.ir/mail/messages/generate-temporary-access-to-email-html.md) - [delete a message permenantly](https://developers.liara.ir/mail/messages/delete-a-message-permenantly.md) - [trash and untrash a message](https://developers.liara.ir/mail/messages/trash-and-untrash-a-message.md) - [get all extra address to forwarding mails](https://developers.liara.ir/mail/forward/get-all-extra-address-to-forwarding-mails.md) - [add address endpoint to forwarding mails](https://developers.liara.ir/mail/forward/add-address-endpoint-to-forwarding-mails.md) - [delete extra endpoint address](https://developers.liara.ir/mail/forward/delete-extra-endpoint-address.md) - [get all attachments for message](https://developers.liara.ir/mail/attachments/get-all-attachments-for-message.md) - [download attachment](https://developers.liara.ir/mail/attachments/download-attachment.md) - [get all events for message](https://developers.liara.ir/mail/event/get-all-events-for-message.md) - [get all tags](https://developers.liara.ir/mail/tags/get-all-tags.md) - [create a new tag](https://developers.liara.ir/mail/tags/create-a-new-tag.md) - [get tags stats](https://developers.liara.ir/mail/tags/get-tags-stats.md) - [get cuurent mail server plan history](https://developers.liara.ir/mail/plan/get-cuurent-mail-server-plan-history.md) - [change mail server plan](https://developers.liara.ir/mail/plan/change-mail-server-plan.md): Upgrades take effect immediately, while downgrades are scheduled and applied after the current plan ends. Click on the request body schema to see all available plans. - [remove a reserved plan](https://developers.liara.ir/mail/plan/remove-a-reserved-plan.md): Click on the request body schema to see all available plans. - [File Browser API](https://developers.liara.ir/pages/file-browser.md): File management API for disks attached to your applications - [Get list from FileBrowser](https://developers.liara.ir/file-browser/disks/get-list-from-filebrowser.md) - [Search file or dir in FileBrowser](https://developers.liara.ir/file-browser/disks/search-file-or-dir-in-filebrowser.md) - [Serve file from FileBrowser](https://developers.liara.ir/file-browser/disks/serve-file-from-filebrowser.md) - [Create link for file in FileBrowser](https://developers.liara.ir/file-browser/disks/create-link-for-file-in-filebrowser.md) - [Rename file or dir in FileBrowser](https://developers.liara.ir/file-browser/disks/rename-file-or-dir-in-filebrowser.md) - [Create file or dir in FileBrowser](https://developers.liara.ir/file-browser/disks/create-file-or-dir-in-filebrowser.md) - [Extract file in FileBrowser](https://developers.liara.ir/file-browser/disks/extract-file-in-filebrowser.md) - [Upload file in FileBrowser](https://developers.liara.ir/file-browser/disks/upload-file-in-filebrowser.md) - [Delete file or dir in FileBrowser](https://developers.liara.ir/file-browser/disks/delete-file-or-dir-in-filebrowser.md) - [IaaS API](https://developers.liara.ir/pages/iaas.md): Infrastructure as a Service API for managing virtual machines - [Get all vms](https://developers.liara.ir/iaas/vms/get-all-vms.md): get all vms that user owns - [Create a vm](https://developers.liara.ir/iaas/vms/create-a-vm.md): create a vm that user owns - [Get vm details](https://developers.liara.ir/iaas/vms/get-vm-details.md): get a vm that user owns - [Delete a vm](https://developers.liara.ir/iaas/vms/delete-a-vm.md): delete a vm that user owns - [Unfreeze a vm](https://developers.liara.ir/iaas/vms/unfreeze-a-vm.md): unfreeze a vm that user owns - [Get traffic graph of a vm](https://developers.liara.ir/iaas/vms/get-traffic-graph-of-a-vm.md): get traffic graph of a vm that user owns - [Get traffic volume of a vm](https://developers.liara.ir/iaas/vms/get-traffic-volume-of-a-vm.md): get traffic volume of a vm that user owns - [Set vm power](https://developers.liara.ir/iaas/vms/set-vm-power.md): set power of a vm that user owns - [Get disk details](https://developers.liara.ir/iaas/vms/get-disk-details.md): get disk details of a vm that user owns - [Create a new disk for a VM](https://developers.liara.ir/iaas/vms/create-a-new-disk-for-a-vm.md): create a disk for a vm that user owns - [Extend a vm Disk](https://developers.liara.ir/iaas/vms/extend-a-vm-disk.md): extend a vm that user owns - [Delete a disk](https://developers.liara.ir/iaas/vms/delete-a-disk.md): Delete a disk of a vm that user owns - [Reset a vm network](https://developers.liara.ir/iaas/vms/reset-a-vm-network.md): reset network a vm that user owns - [Get vm operations](https://developers.liara.ir/iaas/vms/get-vm-operations.md): get operations of a vm that user owns - [Reset a vm password](https://developers.liara.ir/iaas/vms/reset-a-vm-password.md): reset password of a vm that user owns - [Resize a vm](https://developers.liara.ir/iaas/vms/resize-a-vm.md): resize a vm that user owns - [Get all plans](https://developers.liara.ir/iaas/vms/get-all-plans.md): get all Iaas plans - [Get all available operating systems](https://developers.liara.ir/iaas/vms/get-all-available-operating-systems.md): get all available operating systems - [Ai](https://developers.liara.ir/pages/ai.md) - [Create a chat completion](https://developers.liara.ir/ai-chat-completions/chat-completions/create-a-chat-completion.md): Creates a model response for the given conversation. Supports streaming via SSE, tool calling, and multi-modal input (text, images, files). - [List available models](https://developers.liara.ir/ai-chat-completions/models/list-available-models.md): Lists all AI models available for inference in an OpenAI-compatible format. - [Generate images](https://developers.liara.ir/ai-image-generation/image-generations/generate-images.md): Generates images from a text prompt. Supports models from OpenAI (gpt-image-1, gpt-image-2) and Google Gemini (Gemini image models). - [Edit images](https://developers.liara.ir/ai-image-generation/image-edits/edit-images.md): Edits an existing image based on a text prompt. Requires `multipart/form-data` content type. - [Create embeddings](https://developers.liara.ir/ai-embeddings/embeddings/create-embeddings.md): Generates embeddings for the given input text. Supports single strings or arrays of strings. Response includes token usage and cost information. - [Generate speech from text](https://developers.liara.ir/ai-tts/text-to-speech/generate-speech-from-text.md): Generates speech audio from the provided text using the specified text-to-speech model. - [Transcribe audio](https://developers.liara.ir/ai-stt/audio-transcriptions/transcribe-audio.md): Transcribes the provided audio using the specified speech-to-text model. - [List workspaces](https://developers.liara.ir/ai-workspaces/workspaces/list-workspaces.md): Lists all workspaces owned by the authenticated user. - [Create a workspace](https://developers.liara.ir/ai-workspaces/workspaces/create-a-workspace.md): Creates a new AI workspace. Only one free (base) workspace is allowed per user. The workspace name must be unique. - [Check workspace name availability](https://developers.liara.ir/ai-workspaces/workspaces/check-workspace-name-availability.md): Checks if a workspace name is available for use. - [Get workspace details](https://developers.liara.ir/ai-workspaces/workspaces/get-workspace-details.md): Gets detailed information about a specific workspace. - [Delete a workspace](https://developers.liara.ir/ai-workspaces/workspaces/delete-a-workspace.md): Deletes a workspace. - [Change the routing preference](https://developers.liara.ir/ai-workspaces/workspace-actions/change-the-routing-preference.md): Changes what the workspace's inference requests are optimized for: `price` (lowest cost), `throughput` (highest throughput) or `latency` (lowest latency). - [Resize workspace (change plan)](https://developers.liara.ir/ai-workspaces/workspace-actions/resize-workspace-change-plan.md): Changes the plan of a workspace. The user must have sufficient balance for the new plan's hourly price. - [Unfreeze workspace](https://developers.liara.ir/ai-workspaces/workspace-actions/unfreeze-workspace.md): Unfreezes a frozen workspace. The user must have sufficient balance to cover the workspace's hourly plan cost. - [Get free token usage](https://developers.liara.ir/ai-workspaces/workspace-activity/get-free-token-usage.md): Calculates the free token usage for a workspace. - [Get workspace activity](https://developers.liara.ir/ai-workspaces/workspace-activity/get-workspace-activity.md): Gets aggregated usage activity for a workspace grouped by date and model. Time filter availability depends on the workspace plan: - `base`: hour, day, week - `standard`: hour, day, week, month - `pro`: all filters available - [Get model limits](https://developers.liara.ir/ai-workspaces/model-limits/get-model-limits.md): Gets the minimum balance and maximum tokens for a specific model within a workspace. Only applies to chat completion models. - [List API keys](https://developers.liara.ir/ai-keys/api-keys/list-api-keys.md): Lists all API keys owned by the authenticated user, including workspace associations. - [Create an API key](https://developers.liara.ir/ai-keys/api-keys/create-an-api-key.md): Creates a new API key associated with one or more workspaces. The response includes the key token which is only shown once upon creation. - [Update an API key](https://developers.liara.ir/ai-keys/api-keys/update-an-api-key.md): Updates an API key's name, workspaces, or enabled status. - [Delete an API key](https://developers.liara.ir/ai-keys/api-keys/delete-an-api-key.md): Deletes an API key. - [List all models](https://developers.liara.ir/ai-models/model-catalog-v1/list-all-models.md): Returns all available AI models with full details. No authentication required. - [Get a model](https://developers.liara.ir/ai-models/model-catalog-v1/get-a-model.md): Gets a single model by its ID. No authentication required. - [List models with filters](https://developers.liara.ir/ai-models/model-catalog-v2/list-models-with-filters.md): Returns paginated model list with filtering, sorting, and search capabilities. No authentication required. Page size is 20. - [List logs](https://developers.liara.ir/ai-logs/logs/list-logs.md): Lists paginated request logs for a workspace. Date range is constrained by the workspace plan's log retention period. - [Get log details (API key auth)](https://developers.liara.ir/ai-logs/logs/get-log-details-api-key-auth.md): Gets detailed information about a specific log entry. Authenticated via API key. - [Get log details (playground auth)](https://developers.liara.ir/ai-logs/logs/get-log-details-playground-auth.md): Gets detailed information about a specific playground log entry. Authenticated with your Liara API token. - [Playground chat completion](https://developers.liara.ir/ai-playground/playground-chat/playground-chat-completion.md): Creates a chat completion in the playground. Requires `ai.operate` or `ai.manage` permission. Uses the same request/response format as the API key chat completion endpoint. - [Playground list models](https://developers.liara.ir/ai-playground/playground-chat/playground-list-models.md): Lists available models in the playground. Requires `ai.operate` or `ai.manage` permission. Returns models in OpenAI-compatible format. - [Playground image generation](https://developers.liara.ir/ai-playground/playground-images/playground-image-generation.md): Generates images in the playground. Requires `ai.operate` or `ai.manage` permission. Uses the same request/response format as the API key image generation endpoint. - [Playground image edit](https://developers.liara.ir/ai-playground/playground-images/playground-image-edit.md): Edits images in the playground. Requires `ai.operate` or `ai.manage` permission. Requires `multipart/form-data` content type. - [Get current user billing information](https://developers.liara.ir/billing/billing/get-current-user-billing-information.md): Returns the current user's balance and billing configuration. - [Get current user and console information](https://developers.liara.ir/account/user/get-current-user-and-console-information.md): Returns the authenticated user profile and console configuration. In team mode, the response also includes a `team` object. - [Get current subscription plan](https://developers.liara.ir/account/user/get-current-subscription-plan.md): Returns the current subscription plan of the user (or the team in team mode). Returns an empty object when there is no active plan. - [Get two-factor authentication status](https://developers.liara.ir/account/user/get-two-factor-authentication-status.md): Returns the two-factor authentication status of the user. Both fields are omitted for teams. - [Get remaining free credit](https://developers.liara.ir/account/user/get-remaining-free-credit.md): Returns the remaining free credit of the user. The field is omitted for teams. - [Get Git integrations](https://developers.liara.ir/account/user/get-git-integrations.md): Returns the connected Git providers and their repository integrations. - [Get UTM information](https://developers.liara.ir/account/user/get-utm-information.md): Returns the UTM campaign the account joined through, or null if none. ## OpenAPI Specs - [ai-chat-completions](/spec/ai-chat-completions.yaml) - [ai-embeddings](/spec/ai-embeddings.yaml) - [ai-image-generation](/spec/ai-image-generation.yaml) - [ai-keys](/spec/ai-keys.yaml) - [ai-logs](/spec/ai-logs.yaml) - [ai-models](/spec/ai-models.yaml) - [ai-playground](/spec/ai-playground.yaml) - [ai-stt](/spec/ai-stt.yaml) - [ai-tts](/spec/ai-tts.yaml) - [ai-workspaces](/spec/ai-workspaces.yaml) - [billing](/spec/billing.yaml) - [database-inspector](/spec/database-inspector.yaml) - [dbaas](/spec/dbaas.yaml) - [dns](/spec/dns.yaml) - [file-browser](/spec/file-browser.yaml) - [Iaas](/spec/Iaas.yaml) - [mail](/spec/mail.yaml) - [me](/spec/me.yaml) - [object-storage](/spec/object-storage.yaml) - [paas-domains-disks](/spec/paas-domains-disks.yaml) - [paas-git-oneclick](/spec/paas-git-oneclick.yaml) - [paas](/spec/paas.yaml) - [platform-auth](/spec/platform-auth.yaml) - [platform-billing](/spec/platform-billing.yaml) - [platform-support](/spec/platform-support.yaml) - [platform-teams](/spec/platform-teams.yaml) ## Optional - [Documentation](https://docs.liara.ir) - [Blog](https://liara.ir/blog) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.