Skip to main content

Codes

Below is a list of possible error codes, along with additional information about how to resolve them.
CodeDescription
batch_size_exceededThe batch size is too large. The maximum batch size is 1000.
blockedThe verification attempt was blocked. This error only occurs when using the Supabase integration.
category_forbiddenThe message category is not allowed for marketing messages in the specified country.
channel_not_enabled_in_region The channel you’re trying to use is not activated in the region you’re trying to deliver the message. You can update the channels in the Dashboard from the route settings.
custom_code_not_allowedThe custom_code feature is not enabled on your account. Contact support for information.
custom_size_conflictCustom code and code size can’t be set at the same time.
email_verification_not_allowedThe email verification feature is not available to your account. Contact support for more information.
empty_batchThe batch is empty. Provide at least one phone number.
expires_at_in_pastThe expires_at parameter is in the past. Provide a future date.
expires_at_too_far_in_futureThe expires_at parameter is too far in the future. Provide a date within the next day.
insufficient_balanceYou do not have a sufficient balance to send this message. Top-up your account from the Dashboard.
internalAn internal error occurred. Please try again later.
invalid_app_realmBoth platform and value are required for app realm.
invalid_app_realm_platformAppRealm platform must be “android” or “web”.
invalid_app_realm_valueThe AppRealm value is invalid. Must be an 11 character base64 string for Android, or a valid origin domain for Web.
invalid_api_keyThe provided API key is invalid. You can get your API key from the Dashboard.
invalid_bearer_tokenThe provided bearer token is invalid.
invalid_callback_urlThe provided callback URL is invalid.
invalid_code_sizeCode size must be between 4 and 8.
invalid_correlation_idThe provided correlation ID is invalid. Provide a string with a maximum length of 80 characters.
invalid_custom_codeThe provided custom code is invalid.
invalid_customer_uuidThe provided customer UUID is invalid. This error only occurs when using the Supabase integration.
invalid_date_formatThe date passed is not a valid RFC3339 date.
invalid_default_sender_idThe template default Sender ID is invalid. Provide a valid Sender ID.
invalid_dispatch_idThe provided dispatch identifier is invalid. Must be a valid UUIDv7.
invalid_emailThe provided email address is invalid.
invalid_integrationThe provided integration is invalid.
invalid_line_typeThe provided phone number is not assigned to a mobile phone. Prelude only supports mobile phone numbers.
invalid_localeThe provided locale is invalid. Locales should be a BCP-47 formatted string.
invalid_methodThe provided method is invalid.
invalid_phone_numberThe provided phone number is invalid. Provide a valid E.164 phone number.
unassigned_phone_numberThe provided phone number does not belong to a valid, assigned number range.
invalid_preferred_channelThe provided preferred channel is invalid.
invalid_requestThe request is invalid. Check your request against the API documentation and try again.
invalid_sender_idThe provided sender ID is invalid.
invalid_template_idThe provided template ID is invalid. You can get your template ID from the Dashboard.
invalid_template_variablesThe provided template variables are invalid. Provide a JSON object with the required variables.
invalid_variablesThe provided variables are invalid.
invalid_device_idThe provided device ID is invalid.
invalid_os_versionThe provided OS version is invalid.
invalid_device_modelThe provided device model is invalid.
invalid_device_platformThe provided device platform is invalid.
invalid_ja4_fingerprintThe provided JA4 fingerprint is invalid.
invalid_app_versionThe provided app version is invalid.
invalid_device_typeThe provided device type is invalid.
invalid_user_agentThe provided user agent is invalid.
malformed_verification_target_typeThe provided verification target type is invalid.
missing_api_keyYou forgot to include your API key. Add it to the Authorization header using Bearer authentication, like this: Authorization: Bearer <API_KEY>.
not_implementedThe requested feature is not implemented.
premature_retryThis verification was retried too early. You can set the delay between retries from your Dashboard.
region_blocked_by_customerThis region is blocked for this account. You can change this in the Dashboard from the route settings.
region_missing_registrationThis region needs additional registration. Contact support for information.
schedule_at_in_pastThe schedule_at parameter is in the past. Provide a future date.
schedule_at_too_far_in_futureThe schedule_at parameter is too far in the future. Provide a date within the next 90 days.
spending_limit_exceededThe spending limit for a time period has been exceeded. You can set the spending limits from your Dashboard. Retry-After: <seconds> field will be provided in headers.
supabase_not_enabledThe Supabase integration is not enabled for this account.
suspended_accountYour account is suspended. Contact support for more information.
template_not_foundThe provided template ID was not found.
template_not_registered_in_countryThe provided template is not registered in the requested country.
template_not_validatedThe provided template has not been validated. Contact support for more information.
too_many_attemptsYou have reached the maximum number of retries for this verification window. You can try again in a few minutes.
too_many_checksYou have reached the maximum number of checks for this verification window. You can try again in a few minutes.
trusted_user_signal_not_allowedThe is_trusted_user signal is not allowed for this account. Contact us to discuss your use case.
unauthorized_sender_idThe provided sender ID is not authorized to send messages. Contact support for more information.
unsubscribedThe provided phone number is unsubscribed.
unsupported_countryPrelude does not support sending messages to the provided country yet. Contact support for more information.
impossible_codeThe provided code is impossible.

code
string
required

The error code.

Example:

"invalid_phone_number"

message
string
required

A human-readable message describing the error.

Example:

"The provided phone number is invalid. Provide a valid E.164 phone number."

type
string
required

The error type.

Example:

"bad_request"

request_id
string

A string that identifies this specific request. Report it back to us to help us diagnose your issues.

Example:

"3d19215e-2991-4a05-a41a-527314e6ff6a"