# Event notification

A notification of an event sent to your configured callback URL.

Endpoint: POST EventsCallback
Version: 1.0
Security: Basic, OAuth2.0

## Security:

  - `Basic` (unknown)
    http basic

  - `OAuth2.0` (unknown)
    oauth2

## Request fields (application/json):

  - `resourceType` (string)
    The type of the resource.
    Enum: "IMPORTED_NUMBER", "HOSTING_ORDER_NUMBER"

  - `eventType` (string)
    The type of the event.
    Enum: "PROVISIONING_TO_SMS_PLATFORM", "DEPROVISIONING_TO_SMS_PLATFORM", "LINK_TO_10DLC_CAMPAIGN", "UNLINK_TO_10DLC_CAMPAIGN", "HOSTING_PROCESS", "OSR_UPDATE", "DELETE"

  - `eventId` (string)
    The ID of the event.
    Example: abcd1234efghijklmnop567890

  - `timestamp` (string)
    The date and time when the callback was created and added to the callbacks queue in ISO 8601 format (UTC).
    Example: 2023-06-06T07:45:27.785357Z

  - `projectId` (string)
    The ID of the project to which the event belongs.
    Example: abcd12ef-ab12-ab12-bc34-abcdef123456

  - `resourceId` (string)
    The unique identifier of the resource, depending on the resource type. For example, a phone number, a hosting order ID, or a brand ID.
    Example: +12345612345

  - `status` (string)
    The status of the event. For example, `SUCCEEDED` or `FAILED`.
    Enum: "SUCCEEDED", "FAILED"

  - `failureCode` (string)
    If the status is FAILED, a failure code will be provided. For numbers provisioning to SMS platform, there won't be any extra `failureCode`, as the result is binary. For campaign provisioning-related failures, refer to the list for the possible values.
    Enum: "CAMPAIGN_NOT_AVAILABLE", "EXCEEDED_10DLC_LIMIT", "NUMBER_PROVISIONING_FAILED", "PARTNER_SERVICE_UNAVAILABLE", "CAMPAIGN_PENDING_ACCEPTANCE", "MNO_SHARING_ERROR", "CAMPAIGN_PROVISIONING_FAILED", "CAMPAIGN_EXPIRED", "CAMPAIGN_MNO_REJECTED", "CAMPAIGN_MNO_SUSPENDED", "CAMPAIGN_MNO_REVIEW", "INSUFFICIENT_BALANCE", "MOCK_CAMPAIGN_NOT_ALLOWED", "TFN_NOT_ALLOWED", "INVALID_NNID"

## Response default:

  - `default` (unknown)
    200 OK

