{"openapi":"3.1.0","info":{"title":"Fax Number Online API","version":"1.0.0","description":"Upload a PDF or a photo, add a cover page and send it. Incoming faxes land on your own fax number and arrive in your email as a PDF. No machine, no phone line, no toner."},"servers":[{"url":"https://faxnumberonline.com"}],"security":[{"bearer":[]}],"paths":{"/api/v1/faxes":{"get":{"summary":"List Faxes","description":"One fax sent from your account or received on your fax number, with its pages, status and delivery confirmation.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","maximum":200}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK"},"401":{"description":"Invalid key"},"429":{"description":"Rate or quota limit"}}},"post":{"summary":"Create a Fax","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fax"}}}},"responses":{"201":{"description":"Created"},"402":{"description":"Record limit"},"422":{"description":"Invalid"}}}},"/api/v1/faxes/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"summary":"Read a Fax","responses":{"200":{"description":"OK"},"404":{"description":"Not found"}}},"patch":{"summary":"Update a Fax","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fax"}}}},"responses":{"200":{"description":"OK"},"404":{"description":"Not found"}}},"delete":{"summary":"Delete a Fax","responses":{"204":{"description":"Deleted"},"404":{"description":"Not found"}}}},"/api/v1/numbers":{"get":{"summary":"List Fax numbers","description":"A dedicated fax number on your account that receives faxes and forwards them to your email.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","maximum":200}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK"},"401":{"description":"Invalid key"},"429":{"description":"Rate or quota limit"}}},"post":{"summary":"Create a Fax number","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Faxnumber"}}}},"responses":{"201":{"description":"Created"},"402":{"description":"Record limit"},"422":{"description":"Invalid"}}}},"/api/v1/numbers/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"summary":"Read a Fax number","responses":{"200":{"description":"OK"},"404":{"description":"Not found"}}},"patch":{"summary":"Update a Fax number","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Faxnumber"}}}},"responses":{"200":{"description":"OK"},"404":{"description":"Not found"}}},"delete":{"summary":"Delete a Fax number","responses":{"204":{"description":"Deleted"},"404":{"description":"Not found"}}}},"/api/v1/onboarding":{"get":{"summary":"Onboarding questions","description":"The questions that finish setting up an account. No key needed; with a key the reply also carries the current answers. Costs no quota.","security":[],"responses":{"200":{"description":"OK"}}},"post":{"summary":"Answer onboarding for your user","description":"Stores the answers exactly as the onboarding form does, marked as answered by an agent. Idempotent. Costs no quota.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["answers"],"properties":{"answers":{"type":"object","properties":{"fax_use":{"type":"string","enum":["Medical or insurance forms","Legal or real estate documents","Government or tax forms","Business orders and invoices","Something else"],"description":"What will you fax most often?"},"fax_direction":{"type":"string","enum":["Mostly send","Mostly receive","Both"],"description":"Do you mostly send faxes or receive them?"},"area_code":{"type":"string","description":"Preferred area code for your fax number"}},"required":["fax_use","fax_direction"]},"client":{"type":"string","description":"Your name, such as Claude Code."}}}}}},"responses":{"200":{"description":"Saved"},"401":{"description":"Invalid key"},"422":{"description":"Invalid answers"},"429":{"description":"Too many answers this minute"}}}}},"components":{"schemas":{"Fax":{"type":"object","additionalProperties":false,"required":["subject","to_number"],"properties":{"subject":{"type":"string","description":"Short label for the fax"},"to_number":{"type":"string","description":"Recipient fax number in E.164 form"},"direction":{"type":"string","enum":["outbound","inbound"],"description":"Whether the fax was sent from or received on this account"},"status":{"type":"string","enum":["queued","sending","delivered","failed","received"],"description":"Where the fax stands with the carrier"},"pages":{"type":"number","description":"Page count including the cover page"},"cover_note":{"type":"string","description":"Message printed on the cover page"}}},"Faxnumber":{"type":"object","additionalProperties":false,"required":["number"],"properties":{"number":{"type":"string","description":"The fax number in E.164 form"},"kind":{"type":"string","enum":["local","toll_free"],"description":"Local or toll-free number"},"forward_to":{"type":"string","format":"email","description":"Email address that receives incoming faxes as PDF"},"label":{"type":"string","description":"Your own name for the number"}}}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}}}