API console
Explore and test API endpoints interactively in the browser.
SDK wrappers
Official clients for Python, Node.js, Go, PHP, and more.
Terraform provider
Manage OVHcloud infrastructure as code with the OVH Terraform provider.
What is the OVHcloud API?
The OVHcloud API is a REST API available athttps://eu.api.ovh.com/v1/ (EU) and https://ca.api.ovh.com/v1/ (CA). It exposes endpoints for every OVHcloud product — from dedicated servers and VPS to domain names, Public Cloud, and account management.
The API uses four standard HTTP methods:
| Method | Purpose |
|---|---|
GET | Retrieve data |
POST | Create a resource or trigger an action |
PUT | Replace existing data |
DELETE | Delete a resource |
A v2 branch of the API (
/v2) is available for select products with an improved data model. You can switch between /v1 and /v2 in the console using the version selector on the left.Authentication
The OVHcloud API uses a three-token authentication model for application access:| Token | Name | Description |
|---|---|---|
| Application Key (AK) | Public | Identifies your application. Safe to share. |
| Application Secret (AS) | Private | Signs requests. Keep this secret. |
| Consumer Key (CK) | Private | Links the application to a specific OVHcloud account. Keep this secret. |
Creating API credentials
Go to the token creation page
Navigate to https://eu.api.ovh.com/createToken/ and sign in with your OVHcloud credentials.
Fill in the application details
Enter an Application Name and an optional description. You can also set an expiry period for the credentials.
Set the rights
In the Rights section, specify which HTTP methods and API paths the token can access. To allow all GET requests across every endpoint, set the method to
GET and the path to *. You can combine multiple rules.For example, to allow read access to all APIs and write access only to VPS:Click Create keys
After clicking Create keys, you receive three values:
- Application Key (AK) — for example:
7kbG7Bk7S9Nt7ZSV - Application Secret (AS) — for example:
EXEgWIz07P0HYwtQDs7cNIqCiQaWSuHF - Consumer Key (CK) — for example:
MtSwSrPpNjqfVSmJhLbPyr2i45lSwPU1
Making your first API call
Once you have your credentials, you can make authenticated API calls. The request signature is computed as:curl, you can call read-only endpoints that work with basic authentication via the browser console, or use one of the SDKs below for a signed request.
Here is an example that retrieves your account details using the Python SDK:
Listing and revoking credentials
You can manage existing API credentials from the OVHcloud Control Panel or via the API:SDK wrappers
OVHcloud maintains official API wrappers for multiple languages. They handle request signing, retries, and response parsing automatically.- Python: github.com/ovh/python-ovh
- Node.js: github.com/ovh/node-ovh
- Go: github.com/ovh/go-ovh
- PHP: github.com/ovh/php-ovh
- C#: github.com/ovh/csharp-ovh
- Perl: github.com/ovh/perl-ovh
Terraform provider
The OVH Terraform provider allows you to manage OVHcloud resources using Infrastructure as Code. It wraps the OVHcloud API and supports a wide range of products.Quick start
The OVH provider supports many resource types across Bare Metal, Public Cloud, Web Cloud, and Network products. See the complete provider documentation for all available resources and data sources.
OVHcloud CLI
The OVHcloud CLI (ovhcloud) lets you interact with OVHcloud services directly from your terminal without writing code.
Installation
- Linux / macOS (script)
- Homebrew
- Manual
Authentication
Log in interactively to create API credentials:Basic commands
Service accounts and OAuth2
For production automation where credentials must not be tied to a specific human user, use service accounts. Service accounts authenticate with the OAuth2 client credentials flow, which is stateless and does not require a consumer key.Create a service account
Call the API to create an OAuth2 client with the The response contains a
CLIENT_CREDENTIALS flow:clientId and a clientSecret. Store the clientSecret securely — it cannot be retrieved again.Attach an IAM policy to the service account
Retrieve the service account’s URN:The Use this URN as an identity in an IAM policy. See Identity & Access Management for how to create a policy.
identity field returns a URN in this format:Get an access token
Exchange your client credentials for a Bearer token:The response contains an
access_token valid for ~1 hour:Service accounts are designed for machine-to-machine access. Their credentials are tied to your root OVHcloud account, not to any individual user. This means they remain valid even if team members leave or change their credentials.
Next steps
Identity & Access Management
Create IAM policies to control what your API tokens and service accounts can do.
Observability & Monitoring
Forward API activity logs to Logs Data Platform for auditing and alerting.