API Reference › Reference
Errors
Every error has the same shape. Branch on code. The message says what was refused and what to do, and next gives the steps.
| Code | Status | When | Message |
|---|---|---|---|
VALIDATION_FAILED | 400 | A field is missing, malformed or out of range. fields lists each one (below). | Some fields aren't valid. Fix the fields listed, then send the request again. |
UNAUTHENTICATED | 401 | No key, or a key Ported.io didn't issue. | This request has no Ported.io key, or the key isn't one Ported.io issued. Send your key as Authorization: Bearer pt_key_…, or ask for one at https://app.ported.io/agents. |
KEY_DENIED | 401 | The person denied the request. | The person declined this key. Ask them before you request access again. |
KEY_REQUEST_EXPIRED | 401 | Nobody approved it within an hour. | Nobody approved this key within an hour, so it no longer works. Request a new one and give the person its link. |
KEY_REVOKED | 401 | The person revoked it in Settings. | The person revoked this key in Settings. Request a new one only if they want you to keep working. |
KEY_EXPIRED | 401 | The key passed the expiry date the person chose. | This key expired after Mar 3, 2027, the date the person chose. Request a new one and give the person its link. This key expired after Mar 3, 2027, the date the person chose. Ask them to make a new one in Settings, Your keys. |
KEY_PENDING | 403 | A pending key called anything but GET /api/v1/key. | The person hasn't approved this key yet. Give them the approval link, and wait until they say they have. |
PERMISSION_MISSING | 403 | The key lacks listings or offers. | This key can't change listings. Ask for a key that can with POST /api/v1/access-requests, and give the person its approval link. This key can't answer offers. Ask for a key that can with POST /api/v1/access-requests, and give the person its approval link. |
NOT_FOUND | 404 | No such listing, offer, sale or lease in this account. | There's no listing for zeroduds.org in this account. List it with PUT /api/v1/listings/zeroduds.org. There's no offer of_4Z9Q1 in this account. Find open offers with GET /api/v1/inbox. There's no sale sl_1A2B in this account. Find sales with GET /api/v1/sales. There's no lease ls_1A2B in this account. Find leases with GET /api/v1/leases. |
OFFER_CLOSED | 409 | Answering an offer that is accepted, declined, expired or withdrawn, with a different answer. | This offer has expired, so it can't be answered. The buyer can make a new one from the domain's page. |
LISTING_NOT_LIVE | 409 | Accepting or countering an offer while its listing is paused or its nameservers or records are missing. | zeroduds.com is paused, so its offers can only be declined. Resume it with PUT /api/v1/listings/zeroduds.com and {"paused": false} first. zeroduds.com's records are missing, so its offers can only be declined until they're back. See GET /api/v1/listings/zeroduds.com for the checks. |
LISTING_CLOSED | 409 | Changing a listing whose status is closed. | zeroduds.com was listed from another Ported.io account, which now points its DNS at Ported.io, so this listing is closed. Remove it, and list it again only if you control the domain. |
LISTING_SOLD | 409 | Changing the terms or records of a listing whose status is sold. | redealt.com was sold, so its listing can't change. You can remove it with DELETE /api/v1/listings/redealt.com. |
SALE_IN_PROGRESS | 409 | Changing, pausing or removing a listing during a sale, or answering an offer on it. | lotplow.com has a sale in progress, so it can't change until the sale ends. Follow the sale with GET /api/v1/sales/sl_7M2X. |
LEASE_IN_PROGRESS | 409 | Changing, pausing or removing a listing whose domain is leased. | kilnworks.com is leased to a business, so its listing can't change until the lease ends. Follow the lease with GET /api/v1/leases/ls_4Q7N. |
SALE_BLOCKED | 409 | Accepting an offer while saleBlocks isn't empty. Has reason, one of the codes of saleBlocks (§6). | Stripe can't pay the person yet, so this offer can't be accepted. They set up payouts in Settings: https://app.ported.io/settings The person can't sell on Ported.io until they pay $13.25 for the cancelled sale of lotplow.com. They pay it in Settings: https://app.ported.io/settings negotiable.app moved registrar on Nov 15, so a sale can start from Jan 14. Counter or decline the offer now, or wait. negotiable.app expires on Jan 30. The person renews it at Namecheap before a sale can start. |
LEASE_TERMS_NOT_ACCEPTED | 409 | Setting lease on a domain before the person agreed to the lease terms for owners. | Before zeroduds.com can be leased, the person agrees to the lease terms for owners on its page in the app: https://app.ported.io/listings/zeroduds.com. You can't agree for them. |
RATE_LIMITED | 429 | Too many calls (§12). Has retryAfterSeconds and a Retry-After header. | Too many requests. Wait for retryAfterSeconds, then try again. |
INTERNAL | 500 | Ported.io failed while handling the request. Has retryAfterSeconds and a Retry-After header. | Something went wrong at Ported.io, so this request didn't finish. Wait for retryAfterSeconds, then send the same request again. |
UNAVAILABLE | 503 | Ported.io can't answer for a moment, such as during an update. Has retryAfterSeconds and a Retry-After header. | Ported.io can't answer right now, such as during an update. Wait for retryAfterSeconds, then send the same request again. |
Any call can answer INTERNAL or UNAVAILABLE. GET, PUT and DELETE are safe to send again (§12). A POST /api/v1/access-requests that failed may still have made a request: asking again makes another, and the one nobody approves expires within an hour. A 502, 503 or 504 without this body comes from the network in front of Ported.io. Treat it as UNAVAILABLE and wait 30 seconds.
OFFER_CLOSED names the offer's state: This offer was accepted, so it can't be answered again. This offer was declined, so it can't be answered again. This offer was withdrawn by the buyer, so it can't be answered.
HTTP/1.1 403 Forbidden
{
"error": {
"code": "KEY_PENDING",
"message": "The person hasn't approved this key yet. Give them the approval link, and wait until they say they have.",
"next": [
{ "do": "tellPerson", "say": "I'm still waiting for your approval. Open this link to let me work on your Ported.io listings: https://app.ported.io/approve/9f3c1a7e5b2d48c6a0e4f81b3d7c2a95" },
{ "do": "endTurn", "why": "Call GET /api/v1/key again after the person says they approved." }
]
}
}HTTP/1.1 400 Bad Request
{
"error": {
"code": "VALIDATION_FAILED",
"message": "Some fields aren't valid. Fix the fields listed, then send the request again.",
"fields": [
{ "field": "body.amount", "code": "OUT_OF_RANGE", "message": "A counter offer must be more than the buyer's $1,500 and less than your buy now price of $2,400." }
],
"next": [
{ "do": "call", "call": "PUT /api/v1/offers/of_3K8Q2/answer", "body": { "answer": "counter", "amount": 2100 }, "why": "Any amount from $1,501 to $2,399." }
]
}
}HTTP/1.1 503 Service Unavailable
Retry-After: 30
{
"error": {
"code": "UNAVAILABLE",
"message": "Ported.io can't answer right now, such as during an update. Wait for retryAfterSeconds, then send the same request again.",
"retryAfterSeconds": 30,
"next": [
{ "do": "wait", "until": "30 seconds have passed." },
{ "do": "call", "call": "PUT /api/v1/offers/of_3K8Q2/answer", "body": { "answer": "counter", "amount": 2100 }, "why": "The same request again. Repeating an answer is safe." },
{ "do": "tellPerson", "say": "Ported.io isn't answering right now. I'll try again later.", "when": "The same request has failed three times in a row." }
]
}
}HTTP/1.1 500 Internal Server Error
Retry-After: 60
{
"error": {
"code": "INTERNAL",
"message": "Something went wrong at Ported.io, so this request didn't finish. Wait for retryAfterSeconds, then send the same request again.",
"retryAfterSeconds": 60,
"next": [
{ "do": "wait", "until": "60 seconds have passed." },
{ "do": "call", "call": "GET /api/v1/inbox", "why": "The same request again." },
{ "do": "tellPerson", "say": "Ported.io isn't answering right now. I'll try again later.", "when": "The same request has failed three times in a row." }
]
}
}Field messages
| Field | code | Message |
|---|---|---|
params.domain | MALFORMED | That isn't a domain name. Use a name like example.com, without https:// or a path. |
body.mode | REQUIRED | A new listing needs a mode: both, buynow or offers. |
body.mode | MALFORMED | mode must be both, buynow or offers. |
body.price | REQUIRED | A buy now price is needed when mode is both or buynow. |
body.price | MALFORMED | Prices are whole US dollars, like 2400. |
params.domain | TLD_NOT_SUPPORTED | We can't sell .de domains yet. Ported.io sells .com, .net, .org and the other generic domains, plus .co and .io. |
body.price | TOO_SMALL | Prices start at $100. |
body.price | OUT_OF_RANGE | price doesn't apply when mode is offers. Leave it out, or use mode both. |
body.minOffer | TOO_SMALL | Offers start at $100. Leave minOffer out, or make it 100 or more. |
body.minOffer | OUT_OF_RANGE | The lowest offer must be below the buy now price of $2,400. minOffer doesn't apply when mode is buynow. Leave it out, or use mode both. |
body.lease.rent | REQUIRED | Enter the monthly rent in US dollars. |
body.lease.rent | TOO_SMALL | Monthly rent starts at $100. |
body.lease.months | OUT_OF_RANGE | Enter the number of months, from 2 to 60. Leases can run up to 60 months. |
body.movedInLast60Days | REQUIRED | quillmarket.com is at Spaceship, so Ported.io transfers it to its own registrar when it sells. Ask the person whether it changed registrar or owner in the last 60 days, then send movedInLast60Days: false, or the date it did, like 2026-11-15. |
body.movedInLast60Days | REQUIRED | Ported.io couldn't look up quillmarket.com's registrar, so it may transfer it to its own registrar when it sells. Ask the person whether it changed registrar or owner in the last 60 days, then send movedInLast60Days: false, or the date it did, like 2026-11-15. |
body.movedInLast60Days | MALFORMED | movedInLast60Days must be false, or a date like 2026-11-15. |
body.movedInLast60Days | OUT_OF_RANGE | 2026-12-20 hasn't happened yet. Send the date quillmarket.com changed registrar or owner, or false if it hasn't in the last 60 days. |
body.paused | OUT_OF_RANGE | Only a live listing, or one whose nameservers or records are missing, can be paused. Only a paused one can be resumed. |
body.dnsPath | MALFORMED | dnsPath must be nameservers or records. |
body.dnsPath | OUT_OF_RANGE | negotiable.app is live, so it keeps the way it points at Ported.io. Remove the listing and list it again to change it. |
body.records | OUT_OF_RANGE | negotiable.app is on the records path, so its DNS stays where it's hosted. Change its records there. |
body.records[0].type | MALFORMED | type must be A, AAAA, CNAME, MX, TXT, CAA or SRV. |
body.records[0].value | REQUIRED | Enter the record's value. |
body.records[0].value | MALFORMED | TXT values can't contain double quotes. Remove them and send the records again. |
body.records[0].id | OUT_OF_RANGE | rc_9 isn't one of negotiable.app's records. Leave id out to add a new record, or take the ids from GET /api/v1/listings/negotiable.app. |
body.records[0] | RECORD_LOCKED | Ported.io serves the A, AAAA and CNAME records on the domain itself and www, for its for sale page. Leave them out. |
body.answer | MALFORMED | answer must be accept, counter or decline. |
body.amount | REQUIRED | A counter offer needs an amount. |
body.amount | OUT_OF_RANGE | A counter offer must be more than the buyer's $1,500 and less than your buy now price of $2,400. |
body.agentName | REQUIRED | Give a name the person will recognise, like the name of your app. |
body.email | MALFORMED | That isn't an email address. Use one like you@example.com. |
body.agentName | TOO_LONG | Use a name of 60 characters or fewer, like Codex on dana-mbp. |
body.agentName | MALFORMED | Use a plain name the person will recognise, like Codex on dana-mbp, without links or email addresses. |
body.permissions | MALFORMED | permissions can hold listings and offers. read is always included. |
| any | UNKNOWN_FIELD | Ported.io doesn't know this field. Remove it and send the request again. |
query.cursor | MALFORMED | This cursor is no longer valid. Start again without a cursor. |
query.limit | OUT_OF_RANGE | limit can be from 1 to 100. |
The next of each error:
| Code | next |
|---|---|
VALIDATION_FAILED | The same call with valid values, when Ported.io can tell them. |
UNAUTHENTICATED | call GET https://app.ported.io/agents |
KEY_DENIED | askPerson: "Do you want me to ask for access to Ported.io again?", then call POST /api/v1/access-requests when they say yes. |
KEY_REQUEST_EXPIRED, KEY_EXPIRED | For an agent key, call POST /api/v1/access-requests with the same permissions, then tellPerson the new link. For a personal key, tellPerson: "Your Ported.io key expired. Make a new one in Settings, Your keys, and give it to me." |
KEY_REVOKED | askPerson: "You revoked my Ported.io key. Should I ask for a new one?" |
KEY_PENDING | tellPerson the approval link, endTurn. |
PERMISSION_MISSING | call POST /api/v1/access-requests with the permissions the key has plus the missing one, then tellPerson: "I need permission to answer offers on Ported.io. Open this link to allow it: {approvalUrl}" for offers, or "I need permission to list and change your domains on Ported.io. Open this link to allow it: {approvalUrl}" for listings. |
NOT_FOUND | The call that lists what exists. |
LISTING_NOT_LIVE | askPerson: "zeroduds.com is paused. Should I resume it so I can answer this offer, or decline the offer?" |
OFFER_CLOSED | call GET /api/v1/offers/{offerId} |
LISTING_CLOSED | tellPerson what happened, then call DELETE /api/v1/listings/{domain} when the person agrees. |
LISTING_SOLD | call GET /api/v1/sales/{saleId} |
SALE_IN_PROGRESS | call GET /api/v1/sales/{saleId} |
LEASE_IN_PROGRESS | call GET /api/v1/leases/{leaseId} |
SALE_BLOCKED | tellPerson the fix, with the link to Settings for payouts and fees, then askPerson whether to counter or decline the offer instead. |
LEASE_TERMS_NOT_ACCEPTED | tellPerson: "To offer zeroduds.com as a lease to own, open this page, add the lease and agree to the lease terms for owners: https://app.ported.io/listings/zeroduds.com" |
RATE_LIMITED | wait for retryAfterSeconds, then the same call. |
INTERNAL, UNAVAILABLE | wait for retryAfterSeconds, then the same call, then tellPerson "Ported.io isn't answering right now. I'll try again later." once the same call has failed three times in a row. |