<aside> ✅ You're currently viewing the latest version of the User API (UAPI).

</aside>


API METHODS

UAPI80: Collaborations

UAPI80: Container Registry

UAPI80: Container Services

UAPI80: Containers

UAPI80: DNS Zones

UAPI80: Domains

UAPI80: Event Logs

UAPI80: Image

UAPI80: Subscriptions

UAPI80: Ingress Rules

UAPI80: Load Balancers

UAPI80: Locations

UAPI80: Orders

UAPI80: Products

UAPI80: Projects

UAPI80: User

UAPI80: Volume


SECTIONS

Authentication

Basic Auth

Using basic authentication is the easiest way to get started with our API. However, keep in mind that the API credentials that are generated for basic authentication give full access to your entire account, just as if you were logged into the control panel.

If you plan to distribute an application using our API, or allow more than one user access to the tool you’re building, please use OAuth. This is the more secure alternative as it allows you to restrict what your application can do while authenticated to your account.

Invalidating tokens / api keys

When you generate a new api key in ComputeStacks, any previously generated tokens will be immediately invalidated.

OAuth2

Our OAuth2 endpoint supports the following grant types:

Scopes allow you to restrict what access your OAuth application has access to. When your users authenticate, they will be shown what access you're requesting, so please only request access to the scopes you will actually need.

Endpoint Type     | URL
------------------|-----------------------
Token URL         | `/api/oauth/token`
Authorization URL | `/api/oauth/authorize`

Data Types

Available Scopes

Pagination

All collection requests will be paginated using the headers Per-Page and Total. To set these values in your request, pass the URL params page= and per_page=.

Versioning

You may optionally request a specific API version by modifying the Accept header with: application/json; api_version=80, where 80 is the version of the API.

If you omit this value, then the current version will be used.

Current version: 80

If you pass an unsupported API version, you will receive an HTTP status code of 422 (UNPROCESSABLE ENTITY)

Get API Version

# GET /version
* `version`: String
* `api_latest_version`: String
* `api_available_versions`: `Array<Integer>`

Successful Responses

The following HTTP codes may be returned to denote a successful response:

Error Handling

The following error codes may be returned. If any error messages exist, they will be passed to the {errors: []} field.