API Error Messages

Below is a list of all API Error Codes related to the Telnyx platform.

You can download it as a json file by going here.

CodeTitleDetail
10001Inactive phone numberThe phone number is inactive.
10002Invalid phone numberThe phone number is invalid.
10003Invalid URLThe URL provided was invalid, malformed, or too long. URLs can be a maximum of 2000 characters.
10004Missing required parameterA required parameter was missing. Consult the source field on the returned error to determine the missing field.
10005Resource not foundThe requested resource or URL could not be found.
10006Invalid IDThe resource ID provided was invalid.
10007Unexpected errorAn unexpected error occured.
10008Request timeoutThe request timed out.
10009Authentication failedThe required authentication headers were either invalid or not included in the request.
10010Authorization failedYou do not have permission to perform the requested action on the specified resource or resources.
10011Too many requestsYou have exceeded the maximum number of allowed requests.
10012Duplicate resourceResource is a duplicate.
10013Missing associationOne of the associated fields does not exist.
10014Unsupported Media TypeThe request failed because the server does not support the media type.
10015Bad RequestThe request failed because it was not well-formed.
10016Phone number must be in +E.164 formatThe specified phone number parameter must be in +E.164 format.
10017Associated resource does not existThe requested parameter is invalid as the associated resource does not exist.
10018Invalid sort directionThe 'sort_direction' parameter must have a value of either 'asc' or 'desc'.
10019Invalid email addressThe 'email' parameter is not a valid email address.
10020Invalid resource typeThe requested parameter must be of type 'string'
10021Resource in useThe resource can not be removed as it is still in use.
10022One or more invalid IDsOne or more of the IDs provided were invalid.
10023Invalid JSONThe supplied JSON is invalid.
10024Unsupported Content-TypeThe API endpoint only accepts requests that are form encoded or JSON, i.e. they must have a Content-Type header of either application/x-www-form-urlencoded or application/json.
10025String length out of rangeA string provided was either too short or too long. Consult the source field on the returned error to determine the offending field.
10026Invalid parameter typeThe parameter was of the incorrect type. Consult the error's detail and source fields to determine the offending field.
10027Unprocessable EntityThe server understood the syntax of the request but was unable to process the instructions.
10028Character encoding errorThe request body was not able to be decoded.When sending JSON and using a non-Unicode encoding, be sure to set the charset parameter on the Content-Type header.
10029Expected JSON Content-TypeThe API endpoint only accepts requests encoded as JSON with a Content-Type header of application/json.
10030Method not allowedThe URL is valid, but the HTTP method is not allowed. The Allow header on the 405 response lists acceptable methods, and the API documentation will provide details on how to interact with the endpoint.
10031Invalid request filterThere was a problem with the HTTP request Filter.
10032Invalid enumerated valueProvided value isn't on the list of accepted values.
10033Value outside of rangeProvided value is outside of the allowed range.
10034Expected URL-encoded form Content-TypeThe API endpoint only accepts requests with the data encoded as a URL-encoded form with a Content-Type header of application/x-www-form-urlencoded.
10035Resource lockedThese resources have been administratively locked by Telnyx so they cannot be used or modified.
10036Resource is being processedThis resource is in ongoing processing and it can't be interacted with. Please, wait for its operation to finish and retry later.
10037Service unavailableService is unavailable.
10700Invalid caller dataThe CNAM caller data provided is invalid.
20000Invalid resource groupsThe resource groups provided are invalid.
20001Invalid API Key secretThe secret provided is invalid.
20002API Key revokedThe API Key provided is not active.
20003API Key forbiddenThe API Key provided is forbidden.
20004Invalid permission groupsThe permission groups provided are invalid.
20005Invalid userThe user provided is invalid.
20006Expired access tokenThe access token provided is expired.
20007Invalid permission groupsThe permission groups provided must be a subset of the API Key's.
20008Invalid API KeyThe API Key provided is invalid.
20009Invalid userThe user provided does not exist.
20010Invalid invitationThe invitation provided does not exist.
20011API Key in useThe API Key can not be revoked while assigned to a portal user.
20012Account inactiveThe request cannot be fulfilled because your account has been deactivated
20013Account blockedYour account has been blocked
20014Account unverifiedYou have not completed the verifications required to perform this action. Please check the verifications tab under account settings for more information.
20015Feature not enabledThe requested feature is not enabled for your account. Please contact Telnyx customer support for more information.
20016Account not level 1 verifiedThe account has not been level 1 verified, and cannot perform the requested action. Level 1 verification requires verification of a mobile phone number, and is required to perform certain actions including:Purchasing a numberAssigning a connection or messaging profile to a numberCreating a multi-user organization
20017Account not level 2 verifiedThe account has not been level 2 verified, and cannot perform the requested action. Level 2 verification requires contacting Telnyx, and is required to perform certain actions including:International callingCall forwardingSending messages from alphanumeric sender IDs
20100Insufficient FundsYou do not have enough funds to perform this action.
20200Invalid addressThe address provided is invalid.
20201Invalid country codeThe country code provided is invalid.
20202Invalid localityThe locality provided is invalid.
20203Invalid neighborhoodThe neighborhood provided is invalid.
20204Invalid administrative areaThe administrative area provided is invalid.
20205Invalid postal codeThe postal code provided is invalid.
20206Invalid boroughThe borough provided is invalid.
20207Invalid street addressThe street address provided is invalid.
20208Invalid street address house numberThe street address house number provided is invalid.
20209Invalid extended addressThe extended address provided is invalid.
40001Not routableThe destination number is either a landline or a non-routable wireless number.
40002Blocked as spam - temporaryThe message was flagged by a SPAM filter and was not delivered. This is a temporary condition.
40003Blocked as spam - permanentThe message was flagged by a SPAM filter and was not delivered. The originating phone number is permanently blocked.
40004Rejected by destinationThe recipient server is rejecting the message for an unknown reason.
40005Message expired during transmissionThe message expired before it could be fully delivered to the recipient. This error occured after the message left Telnyx and was en route to the destination.
40006Recipient server unavailableThe recipient server is unavailable or not responding. This may be a temporary issue. If the error persists, contact Telnyx support.
40007Loop detectedInfinite loop detected.
40008UndeliverableThe recipient carrier did not accept the message. This is a general purpose undeliverable message.
40009Invalid message bodyThe message body was invalid. The rules Telnyx uses to allow messages may not align with all carriers at all times. If the destination carrier uses more stringent rules, they may reject messages.
40011Too many requestsExceeded upstream rate limit. As a result the message was flagged by a SPAM filter and was not delivered. This is a temporary condition.
40012Invalid messaging destination numberThe destination phone number was deemed invalid by the carrier and was rejected.
40013Invalid messaging source numberThe source phone number was deemed invalid by the carrier.
40014Message expired in queueThe message expired in the queue. This error occured before Telnyx attempted to relay your message, and you were not billed.
40015Blocked as spam - internalThe message was flagged by an internal Telnyx SPAM filter.
40016T-Mobile 10DLC sending limit reachedYou have exceeded T-Mobile's daily allotted throughput for the brand associated to this phone number. The count resets at midnight PST. Messaging throughput is dependent on the Brand Score of the Brand.
40018AT&T 10DLC sending limit reachedYou have exceeded AT&T's daily allotted throughput for the brand associated to this phone number. The count resets at midnight PST. Messaging throughput is dependent on the Brand Score of the Brand.
40100Number not messaging enabled.The number is not currently messaging enabled on the Telnyx platform.
40150Toll free number not in registryMessaging cannot be enabled for this number because the number is not in the voice registry.
40151Message enablement pending with other providerMessaging is in the process of being enabled with another messaging provider.
40152Invalid OSR parameterOne of the parameters sent to the OSR was missing or invalid.
40153Cannot access OSRTelnyx is not authorized to access the OSR.
40154Unauthorized NNIDTelnyx is not authorized to use this NNID.
40155LOA requiredAn LOA is required to text message enable this number.
40156Unauthorized property name/valueTelnyx is not authorized to provision this property name or property value.
40157Temporarily blockedTelnyx is temporarily unable to make changes to the OSR.
40158Delete failedThe record was not found or the NNID was invalid so it could not be deleted.
40159Unknown OSR errorAn error occurred while updating the OSR.
40300Blocked due to STOP messageMessages cannot be sent from your number to a destination number because the destination has sent your number a stop message. Stop messages are those that consist solely of one of the following words (case and whitespace insensitive):CANCELENDQUITSTOPSTOPALLSTOP ALLUNSUBSCRIBE
40301Unsupported message type for the 'to' addressThe requested destination is currently unsupported for the type of traffic originated by the sender or sending number.Messages from long codes or toll free numbers, including multimedia messages, can only be sent to US and Canadian destinations. For other destinations, consider using an alphanumeric sender. Extended reach for long codes will be available soon.Please contact Telnyx customer support if you have questions.
40302Message too largeSMS messages over 140 bytes are split into multiple parts. Depending on the encoding and characters, anywhere from 34 (emojis) to 153 (ASCII) characters can fit in each part.
40303Message not foundThe message was not found. It may not exist or you may not have the correct permissions to view it.
40304Invalid combination of message content argumentsTo send an SMS, the body field must be provided, and it must not be an empty string.To send an MMS, the subject and/or media_urls fields must be provided.
40305Invalid 'from' addressA valid from field must be specified. The value must be a string containing a valid phone number in +E.164 format, a short code, or an alphanumeric sender ID associated with the sending messaging profile.Alphanumeric sender IDs must be between 1 and 11 characters long, and can only contain ASCII letters, numbers, and spaces. They must contain at least one letter.
40306Alpha sender not configuredThe messaging profile is not configured with an alphanumeric sender ID.To send a message from an alphanumeric sender ID, the messaging profile must be configured with the desired sender. Update your messaging profile and try again.
40307Alpha sender mismatchThe alphanumeric sender ID specified as the from parameter in the request does not match the one configured on the messaging profile. Please ensure that the desired alphanumeric sender ID is associated with your messaging profile.
40308Invalid 'from' address for MMSMMS can only be sent from US long code phone numbers and MMS-configured short codes. Use a long code number that is associated with the sending messaging profile.
40309Invalid destination regionThe region for destination number is not included in the messaging profile's list of whitelisted destinations.
40310Invalid 'to' addressThe 'to' address must be a valid number provided in +E.164 format or else a valid short code.If using the version 2 API, either an array of length one, or a single string must be provided. Multi-destination messages are not currently supported.
40311Invalid messaging profile secretThe provided X-Profile-Secret header was not recognized as a valid messaging profile secret.
40312Messaging profile is disabledThe messaging profile is currently disabled.
40313Missing messaging profile secretThe X-Profile-Secret header is missing. The secret is found on messaging profiles and must be included as an HTTP header on requests to send messages.
40314Messaging disabled on accountMessaging has been disabled on your account. Contact Telnyx support.
40315Unhealthy 'from' addressA health check was requested on the sending number, which it failed to pass. Recent traffic data on the number is used to determine its outbound success and spam rejection rates. If there is sufficient traffic data, and if the calculated rates do not meet acceptable thresholds, the number will be considered unhealthy.
40316No content provided for messageTo send an SMS, the text field must be provided, and it must not be an empty string. To send an MMS, the text and/or media_urls fields must be provided.
40317Invalid MMS contentMultimedia messages (MMS) can only contain up to 10 items (URLs listed in media_urls) and the total size must be less than 1 MB.
40318Message queue fullMessage queue is full. The queue limits the rate messages can be sent per account and per number (Rate Limit Docs)
40319Incompatible message type for the 'to' addressIt is not possible to send messages to the requested destination using the given sender or sending number. For example, messages cannot be sent from an alphanumeric sender ID to a short code.
40320Temporarily unusable 'from' addressThe specified number is configured for messaging, but it cannot yet be used to send messages. This is a temporary condition, which typically occurs because the number was recently purchased and the number order has not yet completed. Please wait for the purchase to be finalized, at which time the number will become available for use.
40321No usable numbers on messaging profileNumber Pool could not find any usable numbers on the messaging profile.
40322Blocked due to contentCertain content can cause a message to be rejected.
40323Messaging activation failedMessaging could not be enabled on the number on the Telnyx platform. If this number was ported, ensure that the porting was completed successfully and is ready for use on the Telnyx platform. If this number was purchased, contact Telnyx support as there could be settings discrepancy.
40324Messaging product type change failedError changing product types for the number. This can happen if the number does not fit the traffic profile for the requested product type. This can also happen if the number was recently purchased and there's not enough data to gauge the traffic profile.
40325Invalid alphanumeric sender IDAlphanumeric sender IDs must be between 1 and 11 characters long, and can only contain ASCII letters, numbers, and spaces. They must contain at least one letter.
40326Cannot assign alphanumeric sender IDCurrently it is only possible to assign a single alphanumeric sender ID to a messaging profile. If you wish to change the profile's alphanumeric sender ID, please remove the existing one and then try again.
40327Invalid DomainThe domain provided is not listed as a valid domain to be used with URL Shortener.
40328SMS exceeds recommended sizeSMS messages over 140 bytes are split into multiple parts. Depending on the encoding and characters, anywhere from 34 (emojis) to 153 (ASCII) characters can fit in each part. Messages over a certain number of parts are better sent as MMS messages.
50000VRF still deployedThe VRF can not be removed as it is still deployed to one or more sites
50001VRF not deployedThe VRF is not deployed at this site
50002VRF already deployedThe VRF is already deployed at this site
70000Consumption reached data limitThe consumption reached the defined data limit. Please, update the SIM card group data limit.
70002Invalid data formatThe provided data attribute was invalid. Check out the allowed unit and type of data allowed in the API doc for more information.
70003Mobile operators' preferences priorities are out of sequenceThe mobile operators' preferences priorities should be in an ascending order starting by 0.
70004OTA update in progressSIM card network preferences can't be defined when a previous OTA update is still in progress. Make sure the SIM network preferences had applied the latest request before requesting new preferences.
70005Could not delete SIM card groupThe SIM card group associated with the provided ID can not be deleted because there are SIM cards associated with the SIM card group.
70006Could not delete default SIM card groupThe SIM card group associated with the provided ID can not be deleted because it is the default SIM card group on your account.
70007SIM card doesn't have a SIM card groupA SIM card cannot be enabled unless it's associated with a SIM card group.
70008Public IPs are unavailable at this timeThere aren't any public IPs available at this time. Please contact Telnyx support for more information.
80000Wrong accountOne or more numbers you are attempting to port do not belong to the specified account.
80001Inactive numberOne or more numbers you are attempting to port are not active on the account. Only active numbers may be ported.
80002Wrong providerTelnyx is not the service provider for one or more of the numbers you are attempting to port.
80003Pending orderOne or more numbers are already part of another port request.
80004Invalid desired due dateThe desired due date is not within the allowable window. Please review the porting guidelines.
80005Invalid passcode or pinThe passcode or PIN provided does not match what has been assigned to the number.
80006Invalid PONThe Purchase Order Number (PON) provided is invalid. It must be between 3 and 20 characters and may not contain special characters.
80007FOC expiredThe firm order committment has expired since the number was not ported on the agreed upon due date.
80008Missing LOAA valid LOA (Letter of Authorization) is required to port numbers.
80009Illegible LOAThe LOA (Letter of Authorization) provided was illegible or unable to be viewed.
80010Expired LOAThe LOA (Letter of Authorization) provided has expired and is no longer valid.
80011Invalid SPIDThe service provider ID (SPID) provided was not recognized.
80012Unsuported carrierThe functionality requested is not supported with the specified carrier.
80013Invalid countryAutomated porting is only supported in the US and Canada.
80014Service address mismatchThe service address provided does not match the address on the account.
80015Stranded phone numbersThe BTN/ATN on the account is being ported out which would leave stranded any remaining phone numbers.
80016No CSR data availableA CSR could not be retrieved because the data submitted did not match closely enough with the data on file with the carrier.
80017Invalid service provider typeThe 'service_provider_type' parameter must be one of either 'Telnyx' or 'Peerless'.
80018Invalid FOC dateThe 'foc_date' parameter must be an ISO8601 datetime selected from the available FOC dates.
80019Invalid service provider IDThe 'service_provider_id' parameter must be the ID of an existing service provider.
80020Invalid subscription statusThe 'subscription_status' parameter is required and must have a value of 'pending', 'concurred', 'timer_expired', 'conflict', 'activated', 'cancel_pending', 'cancelled', 'disconnect_pending', 'disconnected' or 'failed'
80021Invalid porting optionThe 'porting_option' parameter is required and must have a value of 'full' or 'partial'.
80022Invalid document typeThe 'document_type' parameter must have value of 'loa', 'csr', 'invoice' or 'other'.
80023Invalid value for rate centersThe 'rate_centers' parameter must be a list of valid rate centers.
80024Record could not be deletedThe sub_request could not be deleted as it has associated phone_numbers.
80100Subscription version not createdThe new service provider did not create an NPAC subscription version.
80101Subscription version does not matchThe new service provider created an NPAC subscription version that does not match the record Telnyx created.
80200Duplicate phone numbers foundDuplicate phone numbers were found in the request.
80201Phone number limit exceededToo many phone numbers were specified for an LSR preorder.
80400Invalid credentialsThe Port PS account credentials were invalid.
80401Too many phone numbersThere is a maximum of 1000 lookups per request.
85000Must search phone number via search API first
85001Phone numbers not available
85002Phone numbers update not allowed on this order
85003Regulatory requirements already satisfied
85004Invalid connection id provided
85005Invalid messaging profile id provided
85006The phone number is already reserved
85007Reservation limit exceeded
85008Reservation extension limit exceeded
90000Invalid value for formatFormat must be of type 'string' with a value of either 'mp3' or 'wav'.
90001Invalid value for channelsChannels must be a 'string' with a value of either 'single' or 'dual'.
90002Invalid value for timeoutThe 'timeout' parameter must be an 'integer' with a minimum and a maximum value accepted by command
90003Invalid value for inter_digit_timeoutThe 'inter_digit_timeout' parameter must be an 'integer' with a minimum value of 1 and a maximum value of 120000.
90004Invalid value for minThe 'min' parameter must be an 'integer' with a minimum value of 1 and a maximum value of 128.
90005Invalid value for maxThe 'max' parameter must be an 'integer' with a minimum value of 1 and a maximum value of 128.
90006Invalid value for triesThe 'tries' parameter must be an 'integer' with a minimum value of 1 and a maximum value of 128.
90007Invalid value for terminating_digitThe 'terminating_digit' parameter must be a 'string' with a value of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, *, or #.
90008Invalid value for valid_digitsThe 'valid_digits' parameter must be a 'string' with a value of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, *, or #.
90009Invalid value for loopThe 'loop' parameter must either be 'infinity' or an 'integer' with a minimum value of 1 and a maximum value of 100.
90010Invalid value for payloadThe 'payload' parameter should contain between 1 and 5000 characters.
90011Invalid value for payload_typeThe 'payload_type' parameter must be of type 'string' with a value of either text or ssml.
90012Invalid value for voiceThe 'voice' parameter must be 'female' or 'male' when using the en-US language.
90013Invalid value for languageThe 'language' parameter must be of type 'string' with a value of either de-DE, en-AU, en-GB, en-US, es-ES, fr-CA, fr-FR, it-IT, ja-JP, ko-KR, nl-NL, pt-BR, sv-SE or tr-TR.
90014Invalid value for digitsThe 'digits' parameter must be a 'string' made of a combination of either 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, w, W, * or #.
90015Invalid Call Control IDThe call_control_id provided was not valid.
90016Invalid value for stopThe 'stop' parameter must be a 'string' with a value of 'all', 'current' or 'overlay'.
90017Invalid value for client_stateThe 'client_state' parameter must be a valid base64 string.
90018Call has already endedThis call is no longer active and can't receive commands.
90019Conference has already endedThis conference is no longer active and can't receive commands.
90020Call recording triggered before audio startedCall recording cannot be started until audio has commenced on the call.
90021Invalid value for durationThe 'duration' parameter must be an 'integer' with a minimum value of 100 and a maximum value of 500.
90022Invalid value for minimum_digitsThe 'minimum_digits' parameter must be an 'integer' with a minimum value of 1 and a maximum value of 128.
90023Invalid value for maximum_digitsThe 'maximum_digits' parameter must be an 'integer' with a minimum value of 1 and a maximum value of 128.
90024Invalid value for maximum_triesThe 'maximum_tries' parameter must be an 'integer' with a minimum value of 1 and a maximum value of 128.
90025Invalid value for timeout_millisThe 'timeout_millis' parameter must be an 'integer' with a minimum and a maximum value accepted by command
90026Invalid value for inter_digit_timeout_millisThe 'inter_digit_timeout_millis' parameter must be an 'integer' with a minimum value of 1 and a maximum value of 120000.
90027Invalid value for duration_millisThe 'duration_millis' parameter must be an 'integer' with a minimum value of 100 and a maximum value of 500.
90028Invalid value for timeout_secsThe 'timeout_secs' parameter must be an 'integer' with a minimum and a maximum value accepted by command
90029Invalid value for time_limit_secsThe 'time_limit_secs' parameter must be an 'integer' with a minimum value of 60 and a maximum value of 14,000.
90030Invalid value for service_levelThe 'service_level' parameter must be of type 'string' with a value of either 'basic' or 'premium'.
90031Call is not currently forkedCan't stop forking, because the call isn't currently forked.
90032Too many conference participantsThe participant is unable to join because the maximum number of participants that was specified at the beginning of the conference has been reached.
90033Conference has no active participantsThe action can not be carried out because the conference has no active participants. Participants must be in a conference before being put on hold or muted.
90034Call has not been answered yetThis call can't receive this command because it has not been answered yet.
90100Notification key is invalidThe request cannot be fulfilled because the provided notification key is invalid.
90101Notification context is invalidThe required notification context was either invalid or not included in the request.