# Send SMS Job.

Send one or more SMS with one or more recipients each. The total number of recipients is limited to 3000 per job. The response contains the job ID (jobId) of your new SMS job.

Endpoint: POST /jobs
Version: v1.0.0
Security: httpBasicAuth

## Security:

  - `httpBasicAuth` (unknown)
    http basic

## Request fields (application/json):

  - `options` (object)

  - `options.src` (string)
    The Sender ID displayed to the recipient. Use a phone number, or a text ID of up to 11 printable ASCII characters. Not all carriers support punctuation and other special characters.

  - `options.encoding` (string)
    Enum: "STANDARD", "UTF-16"

  - `options.billcode` (string)
    Max. 70 characters.

  - `options.statusRequested` (boolean)
    Delivery notification requested.

  - `options.flash` (boolean)

  - `options.customerRef` (string)
    Recommended max. 64 characters.

  - `options.validityMin` (integer)
    Validity of the SMS in minutes. When 0 the provider’s default value is used. Otherwise, values must be between 5 and 2880 minutes.

  - `options.maxParts` (integer)
    Maximum allowed parts in a multi-part message. Values must be between 1 and 20. Longer messages are truncated.

  - `options.invalidCharacters` (string)
    Define how to handle invalid characters in SMS.
    Enum: "REFUSE", "REPLACE", "TO_UTF16", "TRANSLITERATE"

  - `options.qos` (string)
    Quality of Service.
    Enum: "EXPRESS", "NORMAL"

  - `options.jobPeriod` (string)
    Timestamp to schedule when to start processing the SMS Job (iso-8601).

  - `options.duplicateDetection` (boolean)

  - `options.blackoutPeriods` (array)

  - `messages` (array, required)

  - `messages.text` (string, required)
    foo

  - `messages.recipients` (array, required)

  - `messages.recipients.dst` (string, required)

  - `messages.recipients.customerRef` (string)
    Recommended max. 64 characters. Recipient mobile phone number used as default.

  - `messages.recipients.blackoutPeriods` (array)

## Request examples:

  - `Send one SMS message` (unknown)
    Send just one SMS - one message to one recipient - using default account options

  - `Send one SMS message to multiple recipients` (unknown)
    Send one message to 3 recipients - equals 3 SMS - using default account options

  - `Send multiple SMS messages` (unknown)
    Send 3 different messages, each to 1 recipient - equals 3 SMS - using default account options

  - `Send SMS with all options` (unknown)
    Send one SMS using all options

## Response 201:

  - `201` (unknown)
    Job successfully created.

## Response 201 fields (application/json):

  - `jobId` (string)

## Response 400:

  - `400` (unknown)
    Invalid JobRequest-data (qos, encoding, ..).

## Response 400 fields (application/json):

  - `code` (integer)

  - `message` (string)

## Response 401:

  - `401` (unknown)
    Authentication failed.

## Response 409:

  - `409` (unknown)
    Duplicate job (detected by enabled duplicate-detection).

## Response 409 fields (application/json):

  - `code` (integer)

  - `message` (string)

## Response 422:

  - `422` (unknown)
    Invalid JobRequest-data (invalid chars, no messages, ..).

## Response 422 fields (application/json):

  - `code` (integer)

  - `message` (string)

## Response 429:

  - `429` (unknown)
    Too many requests

## Response default:

  - `default` (unknown)
    Other error response.

