Cloudpepper Odoo Instances API
The Odoo Instances API from Cloudpepper — 9 operation(s) for odoo instances.
The Odoo Instances API from Cloudpepper — 9 operation(s) for odoo instances.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/cloudpepper-io:cloudpepper-io-odoo-instances-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Cloudpepper Io Odoo Instances API
version: 1.0.0
description: 'Operations tagged Odoo Instances across 2 of this provider''s published API definitions: cloudpepper-io-openapi.json, cloudpepper-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /
- url: https://api.cloudpepper.io
description: Resolved from the published relative server "/" against the host serving the spec (https://api.cloudpepper.io/openapi.json)
security:
- bearerAuth: []
tags:
- name: Odoo Instances
paths:
/instances/{id}/status:
parameters:
- name: id
in: path
description: Instance id
required: true
schema:
type: string
- name: variables
in: query
description: Variables
required: false
schema:
type: array
get:
tags:
- Odoo Instances
summary: Get instance status
description: 'Retrieves detailed status information about the specified Odoo instance. This endpoint provides comprehensive data about the instance''s current state, including system resource usage, database statistics, process information, and operational status. This is useful for monitoring instance health and troubleshooting performance issues.
**Key Parameters:**
- `id`: The unique identifier of the instance whose status you want to check
- `variables`: Optional query parameters to request specific status information
**NOTE:** The response format will vary depending on the instance state and requested variables. You can use this endpoint to check if an instance is fully operational after creation, restart, or update operations.'
responses:
'200':
description: Instance status retrieved successfully
content:
application/json:
schema:
type: object
example:
systemctl_status: active
git_branch: '17.0'
git_revision: commit id
'404':
description: Instance not found
operationId: getInstancesByIdStatus
x-operation-id-source: derived
servers:
- url: /
/instances/{id}/config:
parameters:
- name: id
in: path
description: Instance id
required: true
schema:
type: string
get:
tags:
- Odoo Instances
summary: Get Odoo config
description: 'Retrieves the Odoo configuration file content for the specified instance. This endpoint returns the actual content of the Odoo configuration file (typically odoo.conf) which contains important settings like database connections, logging levels, and performance parameters. This is useful for reviewing the current configuration before making changes.
**Key Parameters:**
- `id`: The unique identifier of the instance whose configuration you want to retrieve
.'
responses:
'200':
description: Configuration file retrieved successfully
content:
text/plain: null
operationId: getInstancesByIdConfig
x-operation-id-source: derived
servers:
- url: /
/instances:
get:
tags:
- Odoo Instances
summary: List all instances
description: 'Retrieves a list of all Odoo instances in your account. This endpoint returns basic information about each instance, including identifiers, domain names, and current status. This data can be used for monitoring your Odoo deployments or integrating with other systems.
**Returns Information About:**
- Instance IDs and names
- Domain configuration including primary domain and aliases
- Current operational status
- Relationships between instances (parent/staging)
- Server assignment via serverId'
responses:
'200':
description: Instances retrieved successfully
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Instance'
example:
- id: 0196ab35-ba55-77b6-96ea-2122d9e0e8b1
parentId: null
name: test
domain: test.209.38.216.102.nip.io
aliasDomains: []
status: deleting
serverId: 0196aa6e-7f35-78da-919e-3ebbc3b0afde
- id: 0196aece-dbc3-7208-ae94-69cadd8ae63c
parentId: null
name: 24mzr4uptn7.143.244.143.150.nip.io
domain: 24mzr4uptn7.143.244.143.150.nip.io
aliasDomains: []
status: started
serverId: 0196ae9a-287e-74d6-8c42-f8d34376f184
'403':
description: Insufficient permissions (requires admin privileges)
security:
- bearerAuth: []
operationId: getInstances
x-operation-id-source: derived
post:
tags:
- Odoo Instances
summary: Create a new Odoo instance
description: 'Creates a new Odoo instance on your server. This simple process lets you set up a complete Odoo environment with just a few clicks. You can choose to create a fresh installation or restore from an existing backup. The system will handle all the technical details of provisioning, configuring, and launching your new Odoo instance.
**Key Parameters:**
- `serverId`: The ID of the server where you want to create the instance (must be a valid UUID)
- `backupId`: Optional ID of a backup to restore from
- `instanceId`: Optional ID of an existing instance to clone as a staging/test environment
- `config.name`: Name for your Odoo instance (will be used as database name). Can differ from the domain name.
- `config.domain`: Domain name where your instance will be accessible
- `config.odoo_version`: Version of Odoo to install (e.g., ''16.0'', ''17.0'', ''18.0'', ''19.0'', ''20.0'')
- `options.admin_password`: Custom admin password (if not provided, a secure password will be generated)
- `options.lang`: Language code for the Odoo instance (e.g., ''en_US'', ''fr_FR'', ''de_DE'', ''hi_IN'')
- `options.country`: Country code in ISO 3166-1 alpha-2 format (e.g., ''US'', ''FR'', ''DE'', ''IN'')
- `options.external_database`: Optional external PostgreSQL database configuration. The external database must already exist, be reachable from the server, and be completely empty. When using an external database, `config.name` will be used as the database name.
NOTE: All pre-fill values are examples and should be replaced with actual data. Please remove the optional fields completely if you don''t need them.'
requestBody:
content:
application/json:
schema:
type: object
properties:
serverId:
type: string
format: uuid
description: ID of the server where you want to create the instance (must be a valid UUID)
example: 550e8400-e29b-41d4-a716-446655440000
backupId:
type: string
description: 'Optional: ID of a backup to restore from'
example: 7a1b3cd4-e5f6-7g8h-9i0j-1k2l3m4n5o6p
instanceId:
type: string
format: uuid
description: 'Optional: ID of an existing instance to clone. Used to create staging/test environments. The new instance will be a copy of the specified instance with staging-specific configurations applied (e.g., mailhog enabled, workers disabled, database neutralized).'
example: 019c8e50-fa32-74e0-83d2-102756725a13
config:
type: object
description: Configuration settings for the new instance
properties:
name:
type: string
description: Name for your Odoo instance (will be used as database name)
example: mycompany
domain:
type: string
description: Domain name where your instance will be accessible
example: mycompany.example.com
odoo_version:
type: string
description: Version of Odoo to install (e.g., '16.0', '17.0'). Not required if restoring from backup.
example: '17.0'
required:
- name
- domain
options:
type: object
description: Additional options for instance creation
properties:
admin_password:
type: string
description: Custom admin password for the instance. If not provided, a secure password will be generated automatically.
example: MySecureP@ssw0rd!
lang:
type: string
description: Language code for the Odoo instance (e.g., 'en_US', 'fr_FR', 'de_DE', 'es_ES'). Defaults to 'en_US' if not specified.
example: en_US
country:
type: string
description: Country code in ISO 3166-1 alpha-2 format (e.g., 'US', 'FR', 'DE'). Sets the default country for the Odoo instance.
example: US
external_database:
type: object
description: 'Optional: External PostgreSQL database configuration. Allows connecting to an existing external database instead of using the server''s local database. The database must already exist, be reachable from the server, and be completely empty. Note: The database name is taken from `config.name`.'
properties:
host:
type: string
description: Hostname or IP address of the external PostgreSQL server
example: db.example.com
port:
type: integer
description: Port number of the external PostgreSQL server
example: 5432
user:
type: string
description: PostgreSQL username for authentication
example: dbadmin
password:
type: string
description: PostgreSQL password for authentication
example: your_database_password
required:
- host
- port
- user
- password
required:
- cloudId
- config
examples:
withLanguageAndCountry:
summary: Create an Instance
value:
serverId: 550e8400-e29b-41d4-a716-446655440000
config:
name: mycompany
domain: mycompany.example.com
odoo_version: '18.0'
options:
admin_password: MySecureP@ssw0rd!
lang: en_US
country: US
withExternalDatabase:
summary: Create an Instance with external database
value:
serverId: 019c89b6-dc54-7c63-9e24-a7ffb3fc3d2c
config:
name: ExternalDb_dB_name
domain: mycompany.example.com
odoo_version: '18.0'
options:
admin_password: MySecureP@ssw0rd!
lang: en_US
country: US
external_database:
host: db.example.com
port: 5432
user: dbadmin
password: your_database_password
stagingInstance:
summary: Create a staging instance
value:
serverId: 550e8400-e29b-41d4-a716-446655440000
instanceId: 019c8e50-fa32-74e0-83d2-102756725a13
config:
name: mycompanystaging
domain: mycompanystaging.example.com
options:
admin_password: MyStagingP@ssw0rd!
required: true
responses:
'200':
description: Instance creation started successfully
content:
application/json:
schema:
type: object
properties:
id:
type: string
example: 019808ae-ecdb-73bf-8bf9-0db4cb5c31da
status:
type: string
example: ok
generatedPassword:
type: string
example: 'null'
'400':
description: Invalid input data
operationId: postInstances
x-operation-id-source: derived
servers:
- url: /
/instances/{id}/restart:
parameters:
- name: id
in: path
description: Instance id
required: true
schema:
type: string
post:
tags:
- Odoo Instances
summary: Restart Odoo instance
description: Restarts the specified Odoo instance. This is useful when you need to apply configuration changes, clear the instance cache, or resolve performance issues. Users can trigger a restart when experiencing slowness, after updating modules, or when configuration changes have been made that require a service restart to take effect.
responses:
'200':
description: Instance restart initiated successfully
operationId: postInstancesByIdRestart
x-operation-id-source: derived
servers:
- url: /
/instances/{id}/stop:
parameters:
- name: id
in: path
description: Instance id
required: true
schema:
type: string
post:
tags:
- Odoo Instances
summary: Stop Odoo instance
description: Stops the specified Odoo instance. This is useful when you need to temporarily shut down an instance to save resources or perform maintenance. The instance will remain intact but will not be accessible until started again. Users can stop instances when they won't be needed for a period of time, or to troubleshoot issues by performing a clean shutdown.
responses:
'200':
description: Instance stop initiated successfully
operationId: postInstancesByIdStop
x-operation-id-source: derived
servers:
- url: /
/instances/{id}/update:
parameters:
- name: id
in: path
description: Instance id
required: true
schema:
type: string
post:
tags:
- Odoo Instances
summary: Update Odoo instance
description: 'Updates the specified Odoo instance with a new commit. This endpoint allows you to update your Odoo instance to a specific version or commit, useful for applying security patches, bug fixes, or new features. The instance status will be set to ''modifying'' during the update process.
**Key Parameters:**
- `id`: The unique identifier of the instance you want to update
- `commit_sha`: The Git commit SHA representing the version you want to update to'
requestBody:
content:
application/json:
schema:
type: object
properties:
commit_sha:
type: string
description: Git commit SHA to update the instance to
required:
- commit_sha
required: true
responses:
'200':
description: Instance update initiated successfully
'400':
description: Invalid input data
'404':
description: Instance not found
operationId: postInstancesByIdUpdate
x-operation-id-source: derived
servers:
- url: /
/instances/{id}/start:
parameters:
- name: id
in: path
description: Instance id
required: true
schema:
type: string
post:
tags:
- Odoo Instances
summary: Start Odoo instance
description: 'Starts a previously stopped Odoo instance. This endpoint allows you to bring your instance back online after it has been stopped. This is useful for resuming operations on instances that were temporarily shut down to save resources.
**Key Parameters:**
- `id`: The unique identifier of the instance you want to start
**NOTE:** Starting an instance will make it immediately accessible to users. The system will automatically initialize all required services including the Odoo server, database, and web services. It may take a few moments for the instance to become fully operational depending on its size and complexity.'
responses:
'200':
description: Instance start initiated successfully
operationId: postInstancesByIdStart
x-operation-id-source: derived
servers:
- url: /
/instances/{id}/refresh:
parameters:
- name: id
in: path
description: Staging instance id
required: true
schema:
type: string
post:
tags:
- Odoo Instances
summary: Refresh staging instance from production
description: 'Refreshes a staging instance with the latest data from its production (parent) instance. Use this to bring a staging environment back in sync before testing a module, an upgrade, or a configuration change against realistic data.
**Key Parameters:**
- `id`: The unique identifier of the **staging** instance to refresh
**NOTE:** The instance must be a staging instance (it must have a `parentId`), and the parent (production) instance must be hosted on the same server as the staging instance. You need view access to the parent instance as well as edit access to the staging instance. All data currently on staging will be replaced by a fresh copy of production, so anything only present on staging is lost.'
responses:
'200':
description: Staging refresh initiated successfully
content:
application/json:
schema:
type: string
example: ok
'400':
description: Instance is not a staging instance
'403':
description: Insufficient permissions on the staging or parent instance
'404':
description: Instance not found
operationId: postInstancesByIdRefresh
x-operation-id-source: derived
servers:
- url: /
/instances/{id}:
parameters:
- name: id
in: path
description: Instance id
required: true
schema:
type: string
delete:
tags:
- Odoo Instances
summary: Delete Odoo instance
description: 'Permanently deletes the specified Odoo instance. This operation cannot be undone and will remove all data associated with the instance, including databases, file storage, and configuration. This endpoint is useful when instances are no longer needed or when cleaning up testing environments.
**Key Parameters:**
- `id`: The unique identifier of the instance you want to delete
**NOTE:** This is a permanent operation and cannot be undone. Always create a backup before deleting an instance if you might need the data in the future. The deletion process runs asynchronously and may take several minutes to complete for large instances.'
responses:
'200':
description: Instance deleted successfully
content:
application/json:
schema:
type: string
example: ok
'404':
description: Instance not found
operationId: deleteInstancesById
x-operation-id-source: derived
servers:
- url: /
components:
schemas:
Instance:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the instance
parentId:
type:
- string
- 'null'
format: uuid
description: Parent instance ID (set on staging instances)
name:
type: string
description: Instance name (typically used as database name)
domain:
type: string
description: Primary domain name for the instance
aliasDomains:
type: array
items:
type: string
description: Additional domain aliases for this instance
redirectDomains:
type: array
items:
type: string
description: Domains that redirect to the primary domain
status:
type: string
enum:
- creating
- deleting
- error
- modifying
- started
- restarting
- stopped
- stopping
description: Current instance status
serverId:
type: string
format: uuid
description: ID of the server hosting this instance
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
x-refined-from:
- cloudpepper-io-openapi.json
- cloudpepper-io-openapi.yml