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.

CodeStatusWhenMessage
VALIDATION_FAILED400A 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.
UNAUTHENTICATED401No 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_DENIED401The person denied the request.The person declined this key. Ask them before you request access again.
KEY_REQUEST_EXPIRED401Nobody 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_REVOKED401The 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_EXPIRED401The 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_PENDING403A 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_MISSING403The 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_FOUND404No 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_CLOSED409Answering 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_LIVE409Accepting 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_CLOSED409Changing 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_SOLD409Changing 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_PROGRESS409Changing, 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_PROGRESS409Changing, 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_BLOCKED409Accepting 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_ACCEPTED409Setting 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_LIMITED429Too many calls (§12). Has retryAfterSeconds and a Retry-After header.Too many requests. Wait for retryAfterSeconds, then try again.
INTERNAL500Ported.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.
UNAVAILABLE503Ported.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.

A pending key
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." }
    ]
  }
}
A counter out of range
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." }
    ]
  }
}
Ported.io is updating
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." }
    ]
  }
}
Something went wrong at Ported.io
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

FieldcodeMessage
params.domainMALFORMEDThat isn't a domain name. Use a name like example.com, without https:// or a path.
body.modeREQUIREDA new listing needs a mode: both, buynow or offers.
body.modeMALFORMEDmode must be both, buynow or offers.
body.priceREQUIREDA buy now price is needed when mode is both or buynow.
body.priceMALFORMEDPrices are whole US dollars, like 2400.
params.domainTLD_NOT_SUPPORTEDWe can't sell .de domains yet. Ported.io sells .com, .net, .org and the other generic domains, plus .co and .io.
body.priceTOO_SMALLPrices start at $100.
body.priceOUT_OF_RANGEprice doesn't apply when mode is offers. Leave it out, or use mode both.
body.minOfferTOO_SMALLOffers start at $100. Leave minOffer out, or make it 100 or more.
body.minOfferOUT_OF_RANGEThe 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.rentREQUIREDEnter the monthly rent in US dollars.
body.lease.rentTOO_SMALLMonthly rent starts at $100.
body.lease.monthsOUT_OF_RANGEEnter the number of months, from 2 to 60.

Leases can run up to 60 months.
body.movedInLast60DaysREQUIREDquillmarket.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.movedInLast60DaysREQUIREDPorted.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.movedInLast60DaysMALFORMEDmovedInLast60Days must be false, or a date like 2026-11-15.
body.movedInLast60DaysOUT_OF_RANGE2026-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.pausedOUT_OF_RANGEOnly a live listing, or one whose nameservers or records are missing, can be paused. Only a paused one can be resumed.
body.dnsPathMALFORMEDdnsPath must be nameservers or records.
body.dnsPathOUT_OF_RANGEnegotiable.app is live, so it keeps the way it points at Ported.io. Remove the listing and list it again to change it.
body.recordsOUT_OF_RANGEnegotiable.app is on the records path, so its DNS stays where it's hosted. Change its records there.
body.records[0].typeMALFORMEDtype must be A, AAAA, CNAME, MX, TXT, CAA or SRV.
body.records[0].valueREQUIREDEnter the record's value.
body.records[0].valueMALFORMEDTXT values can't contain double quotes. Remove them and send the records again.
body.records[0].idOUT_OF_RANGErc_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_LOCKEDPorted.io serves the A, AAAA and CNAME records on the domain itself and www, for its for sale page. Leave them out.
body.answerMALFORMEDanswer must be accept, counter or decline.
body.amountREQUIREDA counter offer needs an amount.
body.amountOUT_OF_RANGEA counter offer must be more than the buyer's $1,500 and less than your buy now price of $2,400.
body.agentNameREQUIREDGive a name the person will recognise, like the name of your app.
body.emailMALFORMEDThat isn't an email address. Use one like you@example.com.
body.agentNameTOO_LONGUse a name of 60 characters or fewer, like Codex on dana-mbp.
body.agentNameMALFORMEDUse a plain name the person will recognise, like Codex on dana-mbp, without links or email addresses.
body.permissionsMALFORMEDpermissions can hold listings and offers. read is always included.
anyUNKNOWN_FIELDPorted.io doesn't know this field. Remove it and send the request again.
query.cursorMALFORMEDThis cursor is no longer valid. Start again without a cursor.
query.limitOUT_OF_RANGElimit can be from 1 to 100.

The next of each error:

Codenext
VALIDATION_FAILEDThe same call with valid values, when Ported.io can tell them.
UNAUTHENTICATEDcall GET https://app.ported.io/agents
KEY_DENIEDaskPerson: "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_EXPIREDFor 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_REVOKEDaskPerson: "You revoked my Ported.io key. Should I ask for a new one?"
KEY_PENDINGtellPerson the approval link, endTurn.
PERMISSION_MISSINGcall 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_FOUNDThe call that lists what exists.
LISTING_NOT_LIVEaskPerson: "zeroduds.com is paused. Should I resume it so I can answer this offer, or decline the offer?"
OFFER_CLOSEDcall GET /api/v1/offers/{offerId}
LISTING_CLOSEDtellPerson what happened, then call DELETE /api/v1/listings/{domain} when the person agrees.
LISTING_SOLDcall GET /api/v1/sales/{saleId}
SALE_IN_PROGRESScall GET /api/v1/sales/{saleId}
LEASE_IN_PROGRESScall GET /api/v1/leases/{leaseId}
SALE_BLOCKEDtellPerson the fix, with the link to Settings for payouts and fees, then askPerson whether to counter or decline the offer instead.
LEASE_TERMS_NOT_ACCEPTEDtellPerson: "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_LIMITEDwait for retryAfterSeconds, then the same call.
INTERNAL, UNAVAILABLEwait 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.