Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Ovh Contact API
version: '1.0'
contact:
name: OVH
email: api@ml.ovh.net
description: 'Operations tagged Contact across 2 of this provider''s published API definitions: ovh-v1-contact-openapi.json, ovh-v1-contact-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://eu.api.ovh.com/v1
tags:
- name: Contact
paths:
/contact/form:
get:
summary: Get form characteristics
responses:
'200':
description: successful operation
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/contact.FormCharacteristic'
x-developer-hub-navigation:
- - Account
- Profile
x-badges:
- color: green
label: Stable production version
x-code-samples:
- lang: python
label: Python
source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu', # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx', # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx', # Consumer Key\n)\n\nresult = client.get(\"/contact/form\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
- lang: php
label: PHP
source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx', // Application Key\n 'xxxxxxxxxx', // Application Secret\n 'ovh-eu', // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n 'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/contact/form\");\n\nprint_r($result);\n?>"
tags:
- Contact
operationId: getContactForm
x-operation-id-source: derived
servers:
- url: https://eu.api.ovh.com/v1
/contact/form/send:
post:
summary: Send form following characteristics of /contact/form
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
form:
type: array
description: Form informations
items:
$ref: '#/components/schemas/complexType.SafeKeyValue_string'
type:
type: string
description: Form type
required:
- form
- type
responses:
'200':
description: successful operation
x-developer-hub-navigation:
- - Account
- Profile
x-badges:
- color: green
label: Stable production version
x-code-samples:
- lang: python
label: Python
source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu', # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx', # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx', # Consumer Key\n)\n\nresult = client.post(\"/contact/form/send\",\n\tform = None, # Form informations (type: complexType.SafeKeyValue<string>[])\n\ttype = None, # Form type (type: string)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
- lang: php
label: PHP
source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx', // Application Key\n 'xxxxxxxxxx', // Application Secret\n 'ovh-eu', // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n 'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/contact/form/send\", array(\n\tform => null, // Form informations (type: complexType.SafeKeyValue<string>[])\n\ttype => null, // Form type (type: string)\n));\n\nprint_r($result);\n?>"
tags:
- Contact
operationId: postContactFormSend
x-operation-id-source: derived
servers:
- url: https://eu.api.ovh.com/v1
components:
schemas:
contact.KeyFormCharacteristic:
type: object
description: Form key description
properties:
key:
type: string
description: Key name
required:
type: boolean
description: Key required or not
complexType.SafeKeyValue_string:
type: object
description: Key and value, with proper key strings
properties:
key:
type: string
value:
type: string
contact.FormCharacteristic:
type: object
description: Form characteristics
properties:
keys:
type: array
description: Form keys to send
items:
$ref: '#/components/schemas/contact.KeyFormCharacteristic'
type:
type: string
description: Form type
securitySchemes:
oAuth2AuthCode:
type: oauth2
description: Oauth2
x-client-id: 1bb9c7df371741c0
x-client-secret: a5b4de870aca620d10fbf63cd18d205b
flows:
authorizationCode:
authorizationUrl: https://auth.eu.ovhcloud.com/oauth2/authorize
tokenUrl: https://auth.eu.ovhcloud.com/oauth2/token
scopes:
account/all: Manage your account
all: Manage your whole account and all your services
services/all: Manage your services lifecycle and billing
x-refined-from:
- ovh-v1-contact-openapi.json
- ovh-v1-contact-openapi.yml