# Create message processing config

Configure batch send schedules and throttling for a WhatsApp number.
The `dailySchedules` map defines when messages can be sent for each day of the week.
**Note:** The `minMsgDelaySeconds`, and `maxMsgDelaySeconds`, `batchSize`, `minBatchDelayMinutes`, `maxBatchDelayMinutes`, `batchSuccessLimit` fields
apply to **WhatsApp Lite only**. Cloud API rate limiting is managed by Meta.

Endpoint: POST /payless4messaging-service/WhatsApp/api/configs
Version: 3.0.0
Security: apikeyAuth

## Security:

  - `apikeyAuth` (unknown)
    apiKey in header Authorization

## Request fields (application/json):

  - `id` (string)
    Example: 1d368c30-c9f8-4523-b8c2-3824ba72ff5c

  - `clientNumber` (string)
    Example: +27123456789

  - `clientRef` (string)
    Example: MyClient

  - `clientTimezone` (string)
    Example: Africa/Johannesburg

  - `maxMessagesPerMinute` (integer)
    Maximum messages sent per minute.
    Example: 6

  - `minMsgDelaySeconds` (integer)
    **WhatsApp Lite only.** Minimum delay between individual messages (seconds).
    Example: 5

  - `maxMsgDelaySeconds` (integer)
    **WhatsApp Lite only.** Maximum delay between individual messages (seconds).
    Example: 10

  - `batchSize` (integer)
    **WhatsApp Lite only.** Number of messages per batch.
    Example: 20

  - `minBatchDelayMinutes` (integer)
    **WhatsApp Lite only.** Minimum delay between batches (minutes).
    Example: 15

  - `maxBatchDelayMinutes` (integer)
    **WhatsApp Lite only.** Maximum delay between batches (minutes).
    Example: 30

  - `batchSuccessLimit` (integer)
    **WhatsApp Lite only.** Stop batch after this many successes (0 = unlimited).
    Example: 0

  - `dailySchedules` (object)
    Send window per day of week. Keys: MONDAY–SUNDAY.

## Response 200:

  - `200` (unknown)
    The newly created message processing configuration

## Response 200 fields (application/json):

  - `id` (string)
    Example: 1d368c30-c9f8-4523-b8c2-3824ba72ff5c

  - `clientNumber` (string)
    Example: +27123456789

  - `clientRef` (string)
    Example: MyClient

  - `clientTimezone` (string)
    Example: Africa/Johannesburg

  - `maxMessagesPerMinute` (integer)
    Maximum messages sent per minute.
    Example: 6

  - `minMsgDelaySeconds` (integer)
    **WhatsApp Lite only.** Minimum delay between individual messages (seconds).
    Example: 5

  - `maxMsgDelaySeconds` (integer)
    **WhatsApp Lite only.** Maximum delay between individual messages (seconds).
    Example: 10

  - `batchSize` (integer)
    **WhatsApp Lite only.** Number of messages per batch.
    Example: 20

  - `minBatchDelayMinutes` (integer)
    **WhatsApp Lite only.** Minimum delay between batches (minutes).
    Example: 15

  - `maxBatchDelayMinutes` (integer)
    **WhatsApp Lite only.** Maximum delay between batches (minutes).
    Example: 30

  - `batchSuccessLimit` (integer)
    **WhatsApp Lite only.** Stop batch after this many successes (0 = unlimited).
    Example: 0

  - `dailySchedules` (object)
    Send window per day of week. Keys: MONDAY–SUNDAY.

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `status` (string)
    Example: ERROR

  - `message` (string)
    Example: Invalid Parameters

  - `requestId` (string)
    Example: c3a1f8e2-4b6d-11ee-be56-0242ac120002

  - `timestamp` (string)
    Example: 2026-01-15T10:30:00Z

## Response 401:

  - `401` (unknown)
    Authentication failed — the API key sent in the `Authorization` header is missing,
invalid, or has been revoked.
**Verify your API key before changing anything else.** Check the key currently active
on your account either in the eCommunicate web UI (API key settings), or by calling
`POST /payless4messaging-service/WhatsApp/authenticate/retrieveApiKey` with your
account credentials — that endpoint needs no existing key, so it works while every
other call is returning `401`. Compare the result with the value your integration is
sending: pass the key on its own (no `Bearer` prefix), trimmed of whitespace, as a
36-character UUID.
Do not retry a `401` — it will fail identically until the key is corrected. See the
[Authentication guide](/guides/authentication#troubleshooting-a-401).

## Response 401 fields (application/json):

  - `status` (string)
    Example: ERROR

  - `message` (string)
    Example: Unauthorized user

  - `requestId` (string)
    Example: c3a1f8e2-4b6d-11ee-be56-0242ac120002

  - `timestamp` (string)
    Example: 2026-01-15T10:30:00Z

