> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Porting API errors

> Machine-readable error codes for the Porting APIs with a retryable flag in meta. Use code and meta.retryable to branch automation logic.

Every error response from the Porting APIs (`/porting_orders`, `/portability_checks`, `/portouts`) uses the standard Telnyx error envelope. Each error carries a stable `code`, a `title`, a `detail`, an optional `source` locator, and a `meta` object with the code's documentation URL and a `retryable` flag. For `/customer_service_records`, the envelope is the same, but `meta.retryable` is optional pending service-side emission — treat the field as absent until the error schema for that API advertises it.

Use `meta.retryable` to branch automation logic without matching on titles or details:

* `meta.retryable: true` — retrying the identical request can succeed. Use backoff and cap retries (for example, 10011 rate limiting and 10038 service availability).
* `meta.retryable: false` — the request cannot succeed as-is. Fix the request, upgrade the account, or take a human action before retrying.

## Error envelope

```json theme={null}
{
  "errors": [
    {
      "code": "10011",
      "title": "Too many requests",
      "detail": "You have exceeded the maximum number of allowed requests.",
      "source": { "pointer": "/" },
      "meta": {
        "url": "https://developers.telnyx.com/docs/overview/errors/10011",
        "retryable": true
      }
    }
  ]
}
```

`code`, `title`, `detail`, and `meta.retryable` are always present on Porting API error responses, except on `/customer_service_records`, where `meta.retryable` is optional pending service-side emission. `source.pointer` locates the offending request field, or `/` for request-level errors. `meta.url` links the code's documentation.

The 80xxx codes are porting-specific. Codes 10001–10039 and 10700 are shared across Telnyx APIs and documented in the [General API error catalog](https://developers.telnyx.com/docs/development/api-fundamentals/api-errors.md), with one exception: 10038 and 10039 have Porting-specific definitions in the table below, and Porting clients should follow the Porting definitions here rather than the General catalog for these two codes.

## Error codes

| Code | Title | Retryable | Detail |
| - | - | - | - |
| 10001 | Inactive phone number | no | The phone number is inactive. |
| 10002 | Invalid phone number | no | The phone number is invalid. |
| 10003 | Invalid URL | no | The URL provided was invalid, malformed, or too long. URLs can be a maximum of 2000 characters. |
| 10004 | Missing required parameter | no | A required parameter was missing. Consult the source field on the returned error to determine the missing field. |
| 10005 | Resource not found | no | The requested resource or URL could not be found. |
| 10006 | Invalid ID | no | The resource ID provided was invalid. |
| 10007 | Unexpected error | yes | An unexpected error occured. |
| 10008 | Request timeout | yes | The request timed out. |
| 10009 | Authentication failed | no | The required authentication headers were either invalid or not included in the request. |
| 10010 | Authorization failed | no | You do not have permission to perform the requested action on the specified resource or resources. |
| 10011 | Too many requests | yes | You have exceeded the maximum number of allowed requests. |
| 10012 | Duplicate resource | no | Resource is a duplicate. |
| 10013 | Missing association | no | One of the associated fields does not exist. |
| 10014 | Unsupported Media Type | no | The request failed because the server does not support the media type. |
| 10015 | Bad Request | no | The request failed because it was not well-formed. |
| 10016 | Phone number must be in +E.164 format | no | The specified phone number parameter must be in +E.164 format. |
| 10017 | Associated resource does not exist | no | The requested parameter is invalid as the associated resource does not exist. |
| 10018 | Invalid sort direction | no | The 'sort\_direction' parameter must have a value of either 'asc' or 'desc'. |
| 10019 | Invalid email address | no | The 'email' parameter is not a valid email address. |
| 10020 | Invalid resource type | no | The requested parameter must be of type 'string' |
| 10021 | Resource in use | no | The resource can not be removed as it is still in use. |
| 10022 | One or more invalid IDs | no | One or more of the IDs provided were invalid. |
| 10023 | Invalid JSON | no | The supplied JSON is invalid. |
| 10024 | Unsupported Content-Type | no | The 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. |
| 10025 | String length out of range | no | A string provided was either too short or too long. Consult the source field on the returned error to determine the offending field. |
| 10026 | Invalid parameter type | no | The parameter was of the incorrect type. Consult the error's detail and source fields to determine the offending field. |
| 10027 | Unprocessable Entity | no | The server understood the syntax of the request but was unable to process the instructions. |
| 10028 | Character encoding error | no | The 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. |
| 10029 | Expected JSON Content-Type | no | The API endpoint only accepts requests encoded as JSON with a Content-Type header of application/json. |
| 10030 | Method not allowed | no | The 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. |
| 10031 | Invalid request filter | no | There was a problem with the HTTP request Filter. |
| 10032 | Invalid enumerated value | no | Provided value isn't on the list of accepted values. |
| 10033 | Value outside of range | no | Provided value is outside of the allowed range. |
| 10034 | Expected URL-encoded form Content-Type | no | The 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. |
| 10035 | Resource locked | no | These resources have been administratively locked by Telnyx so they cannot be used or modified. |
| 10036 | Resource is being processed | yes | This resource is in ongoing processing and it can't be interacted with. Please, wait for its operation to finish and retry later. |
| 10037 | Service unavailable | no | Service is unavailable. |
| 10038 | Service temporarily unavailable | yes | Portability check is currently not available. Please retry with backoff. |
| 10039 | Account limit reached | no | Trial accounts may check portability for a limited total number of phone numbers. Please consider upgrading to a paid plan in [https://telnyx.com/upgrade](https://telnyx.com/upgrade) or reach out to support. |
| 10700 | Invalid caller data | no | The CNAM caller data provided is invalid. |
| 80012 | Unsupported carrier | no | The functionality requested is not supported with the specified carrier. |
| 80017 | Invalid service provider type | no | The 'service\_provider\_type' parameter must be one of either 'Telnyx' or 'Peerless'. |
| 80018 | Invalid FOC date | no | The 'foc\_date' parameter must be an ISO8601 datetime selected from the available FOC dates. |
| 80019 | Invalid service provider ID | no | The 'service\_provider\_id' parameter must be the ID of an existing service provider. |
| 80020 | Invalid subscription status | no | The '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'. |
| 80021 | Invalid porting option type | no | Parameter '{attr}' is required and must have value 'full' or 'partial'. |
| 80022 | Invalid document type | no | The 'document\_type' parameter must have value of 'loa', 'csr', 'invoice' or 'other'. |
| 80023 | Invalid value for rate centers | no | The 'rate\_centers' parameter must be a list of valid rate centers. |
| 80024 | Record could not be deleted | no | The 'sub\_request\_id' could not be deleted as it has associated phone\_numbers. |
| 80025 | Portouts not authorized | no | Cannot assign FOC date: not all portouts are authorized. |
| 80026 | Account billing state error | no | The account is not in a valid billing state for this operation. |
| 80027 | FOC must be set on portout | no | FOC must be set on the port-out before this operation can proceed. Set the FOC date on the port-out, then retry the request. |
