---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/80407#article
headline: "80407: Phone Number Sid Invalid"
url: https://www.twilio.com/docs/api/errors/80407
inLanguage: en
dateModified: 2026-06-08T12:04:59.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 80407: Phone Number Sid Invalid

Log Level: WARNING

## Description

This warning appears when you send an invalid `Sid` value in a Proxy Phone Number request. When you add a phone number to a Proxy Service, use either `Sid` or `PhoneNumber`. If you use `Sid`, provide the SID of an IncomingPhoneNumber resource, which must match the `PN` format `^PN[0-9a-fA-F]{32}$`.

### Possible causes

* The `Sid` value is malformed, truncated, or includes extra characters, so it does not match the required `PN` SID format.
* The request uses `Sid` for a value that is not the SID of an IncomingPhoneNumber resource on your account. Proxy expects `Sid` to identify a phone number on your account.
* The request sends a literal phone number in `Sid` instead of using the `PhoneNumber` parameter. Proxy accepts a phone number value through `PhoneNumber`, not `Sid`.
* The request passes both `PhoneNumber` and `Sid`. Only one of these values is allowed in the request.

### Possible solutions

* Retrieve the correct PN SID for the phone number from your account, then send that value in `Sid`. You can list your IncomingPhoneNumber resources or fetch a specific IncomingPhoneNumber resource to confirm the SID you should use.
* Validate the `Sid` before you send the request. A valid IncomingPhoneNumber SID matches `^PN[0-9a-fA-F]{32}$`.
* If you want to add the number by its phone number value instead of its SID, send `PhoneNumber` in `E.164` format and omit `Sid`.
* Confirm that the phone number is already provisioned, ported, or hosted in your Twilio account before you reference it as an IncomingPhoneNumber resource.

#### Additional resources

* [Proxy Phone Number resource](/docs/proxy/api/phone-number)
* [Phone Number Management](/docs/proxy/understanding-phone-number-management)
* [IncomingPhoneNumber resource](/docs/phone-numbers/api/incomingphonenumber-resource)
