Skip to content

Senders

All operations require authentication.

11 operationsv1/sms/{serviceName}
Agent setup

List sendersProduction

GET
/1.0/sms/{serviceName}/senders

List senders. Returns the senders of the account. A sender is the name or number shown to receivers, and must be validated before it can be used.

Path parameters

serviceName
required
string

The internal name of your SMS offer

Response

200string[]successful operation

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ "string"]

Get a senderProduction

GET
/1.0/sms/{serviceName}/senders/{sender}

Get a sender. Returns the sender: status (enable, disable, waitingValidation or refused), type, description and the comment of the moderator.

Path parameters

sender
required
string

The sms sender

serviceName
required
string

The internal name of your SMS offer

Response

200Sendersuccessful operation
comment
read-only
string

Message sent by the moderator

description
string

Sender description

referer
read-only
RefererSenderEnum

Specify if the sender is custom or not

Valuescustomdomainlinenicownervirtual
sender
read-only
string

The sms sender

status
StatusSenderEnum

Sender status

ValuesdisableenablerefusedwaitingValidation
type
read-only
TypeSenderEnum

Specify the kind of sender

Valuesalphanumericshortcodetime2chatvirtual
validationMedia
read-only
string

Validation media identifier

Example uses sender = string, serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders/{sender} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "comment": "string", "description": "string", "referer": "custom", "sender": "string", "status": "disable", "type": "alpha", "validationMedia": "string"}

Create a senderProduction

POST
/1.0/sms/{serviceName}/senders

Create a sender. Creates a sender (alphanumeric or phone number). The sender is moderated before it can be used.

Path parameters

serviceName
required
string

The internal name of your SMS offer

Request body (required)

description
string

Sender description

reason
string

Message seen by the moderator

sender
required
string

The sender (alpha or phone number)

Response

200stringsuccessful operation

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
"string"

Delete a senderProduction

DELETE
/1.0/sms/{serviceName}/senders/{sender}

Delete a sender. Deletes the sender. It can no longer be used as the name or number shown to the receivers of the SMS sent.

Path parameters

sender
required
string

The sms sender

serviceName
required
string

The internal name of your SMS offer

Response

200—successful operation

Example uses sender = string, serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders/{sender} \
  -H "authorization: Bearer $OVH_TOKEN"

Update a senderProduction

PUT
/1.0/sms/{serviceName}/senders/{sender}

Update a sender. Updates the sender description and its status, to enable or disable a validated sender.

Path parameters

sender
required
string

The sms sender

serviceName
required
string

The internal name of your SMS offer

Request body (required)

comment
read-only
string

Message sent by the moderator

description
string

Sender description

referer
read-only
RefererSenderEnum

Specify if the sender is custom or not

Valuescustomdomainlinenicownervirtual
sender
read-only
string

The sms sender

status
StatusSenderEnum

Sender status

ValuesdisableenablerefusedwaitingValidation
type
read-only
TypeSenderEnum

Specify the kind of sender

Valuesalphanumericshortcodetime2chatvirtual
validationMedia
read-only
string

Validation media identifier

Response

200—successful operation

Example uses sender = string, serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders/{sender} \
  -H "authorization: Bearer $OVH_TOKEN"

List validation documentsProduction

GET
/1.0/sms/{serviceName}/senders/{sender}/documents

List validation documents. Returns the identifiers of the documents sent to validate the sender. Get a validation document for its name, size and download URL.

Path parameters

sender
required
string

The sms sender

serviceName
required
string

The internal name of your SMS offer

Response

200string[]successful operation

Example uses sender = string, serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders/{sender}/documents \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ "00000000-0000-0000-0000-000000000000"]

Get a validation documentProduction

GET
/1.0/sms/{serviceName}/senders/{sender}/documents/{documentID}

Get a validation document. Returns the validation document: name, description, size, creation date and the URL to download it.

Path parameters

documentID
required
stringuuid

Document ID

sender
required
string

The sms sender

serviceName
required
string

The internal name of your SMS offer

Response

200SenderDocumentsuccessful operation
createdAt
read-only
stringdate-time

Creation datetime

description
string

Document description

documentID
read-only
stringuuid

Document ID

getUrl
read-only
string

URL to get document

name
string

Document name

putUrl
read-only
string

URL to upload document

size
read-only
integer

Document size (in bytes)

Example uses documentID = 00000000-0000-0000-0000-000000000000, sender = string, serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders/{sender}/documents/{documentID} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "createdAt": "2024-01-01T12:00:00Z", "description": "string", "documentID": "00000000-0000-0000-0000-000000000000", "getUrl": "string", "name": "string", "putUrl": "string", "size": 0}

Create a validation documentProduction

POST
/1.0/sms/{serviceName}/senders/{sender}/documents

Create a validation document. Creates an empty validation document with a name and a description. Returns the URL to upload the file.

Path parameters

sender
required
string

The sms sender

serviceName
required
string

The internal name of your SMS offer

Request body (required)

description
string

Document description

name
required
string

Document name

Response

200SenderDocumentsuccessful operation
createdAt
read-only
stringdate-time

Creation datetime

description
string

Document description

documentID
read-only
stringuuid

Document ID

getUrl
read-only
string

URL to get document

name
string

Document name

putUrl
read-only
string

URL to upload document

size
read-only
integer

Document size (in bytes)

Example uses sender = string, serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders/{sender}/documents \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "createdAt": "2024-01-01T12:00:00Z", "description": "string", "documentID": "00000000-0000-0000-0000-000000000000", "getUrl": "string", "name": "string", "putUrl": "string", "size": 0}

Update a validation documentProduction

PUT
/1.0/sms/{serviceName}/senders/{sender}/documents/{documentID}

Update a validation document. Updates the name and the description of the validation document. The file itself is uploaded with the URL given at creation.

Path parameters

documentID
required
stringuuid

Document ID

sender
required
string

The sms sender

serviceName
required
string

The internal name of your SMS offer

Request body (required)

createdAt
read-only
stringdate-time

Creation datetime

description
string

Document description

documentID
read-only
stringuuid

Document ID

getUrl
read-only
string

URL to get document

name
string

Document name

putUrl
read-only
string

URL to upload document

size
read-only
integer

Document size (in bytes)

Response

200—successful operation

Example uses documentID = 00000000-0000-0000-0000-000000000000, sender = string, serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders/{sender}/documents/{documentID} \
  -H "authorization: Bearer $OVH_TOKEN"

Validate a senderProduction

POST
/1.0/sms/{serviceName}/senders/{sender}/validate

Validate a sender. Validates the sender with the validation code received. Once validated, the sender can be used to send SMS.

Path parameters

sender
required
string

The sms sender

serviceName
required
string

The internal name of your SMS offer

Request body (required)

code
required
string

The validation code

Response

200—successful operation

Example uses sender = string, serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/senders/{sender}/validate \
  -H "authorization: Bearer $OVH_TOKEN"

List senders available for validationProduction

GET
/1.0/sms/{serviceName}/sendersAvailableForValidation

List senders available for validation. Returns the senders linked to the customer account or to OVHcloud services, which can be validated automatically.

Path parameters

serviceName
required
string

The internal name of your SMS offer

Query parameters

referer
SenderRefererEnum

Information type

Valuesdomainnichandle

Response

200SenderAvailable[]successful operation
referer
SenderRefererEnum

The referer of the available sender

Valuesdomainnichandle
sender
string
—

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/sms/{serviceName}/sendersAvailableForValidation \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "referer": "domain", "sender": "string" }]