Platform Core API
Liara’s Platform Core API covers the cross-service operations that are not tied to a single runtime product such as PaaS or DBaaS: account lifecycle, team collaboration, billing, and support.What’s inside
- Authentication & Account — login, API tokens, password changes and resets, two-factor authentication, email and phone verification, profile and billing contact details
- Teams & Access — teams, invitations, members, custom roles, and per-resource permissions
- Billing & Subscription — credit, payments, invoices, receipts, discount codes, and subscription plans
- Support & Notifications — support tickets, comments, attachments, notification channels, and preferences
Base URL
Authentication
Send your API token in theAuthorization header:
POST /v1/login, or, once logged in, with POST /v1/api-token.
- Tokens are valid for 30 days by default.
POST /v1/loginandPOST /v1/api-tokenaccept anexpiresInquery parameter (1h,1d,7d,30d,180dor1y). - Changing or resetting your password makes every previously issued token stop working.
- A missing, invalid or expired token returns
401with{"error": "Unauthorized."}. A banned account gets403with{"error": "Banned."}.
Working with a team
Tokens always belong to a person. To act on a team’s resources, add the team’s ID as theteamID query parameter:
- An invalid
teamIDreturns400with the messageInvalid team ID. - A team you aren’t a member of returns
403withdata.codeset toteam_not_found. - An action your role or permissions don’t allow returns
403withdata.codeset tono_permission.
Errors
Most errors use this JSON body:messageis human-readable and may change. Whendata.codeis present, it’s a stable, machine-readable code you can branch on.datacan benull.- Invalid request bodies or parameters return
400with amessagenaming the field, and nodata. account_verification_requiredmeans you need to set your full name and verify your email address, phone number and national code before creating services or tokens.- An unknown path returns
404with{"error": "Not Found"}.
Rate limits
Some endpoints, such as login, password reset and verification codes, are rate limited. Exceeding a limit returns429 Too Many Requests.
Explore the endpoint references in this section for full request bodies, response schemas, and error codes.