Railmail returns RFC 7807 problem details for every error.
Railmail uses conventional HTTP status codes to indicate the outcome of a request. Codes in the 2xx range mean success, 4xx means the request failed given the information provided, and 5xx means something went wrong on Railmail’s side.
Retry with backoff. If it persists, contact support.
Always read the title and detail fields; they explain what went wrong far better than the status code alone. For 400 responses, the errors map pinpoints exactly which fields to fix.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Railmail","colors":{"primary":"#5E6AD2","light":"#7281FF","dark":"#7C5CFF"},"logo":{"light":"https://mintcdn.com/railmail/eQPO8l6Qj_PgLc7Q/logo/light.svg?fit=max\u0026auto=format\u0026n=eQPO8l6Qj_PgLc7Q\u0026q=85\u0026s=fbd8bfbe5319f8d5d56bd7ed314d1c3b","dark":"https://mintcdn.com/railmail/eQPO8l6Qj_PgLc7Q/logo/dark.svg?fit=max\u0026auto=format\u0026n=eQPO8l6Qj_PgLc7Q\u0026q=85\u0026s=a3c54365e0cfb6541b353dfaae9eb012"},"favicon":"https://mintcdn.com/railmail/vcWG7wH7qsVlUHJ8/favicon.svg?fit=max\u0026auto=format\u0026n=vcWG7wH7qsVlUHJ8\u0026q=85\u0026s=f2b2c0693cfd57b0b2646572a3b63c31","navbar":{"links":[{"href":"mailto:support@railmail.app","label":"Support"}],"primary":{"type":"button","label":"Portal","href":"https://app.railmail.app"}},"footer":{"socials":{"x":"https://x.com/railmail","github":"https://github.com/railmail","linkedin":"https://linkedin.com/company/railmail"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Portal","icon":"gauge","href":"https://app.railmail.app"}]},"languages":[{"language":"en","href":"en"},{"language":"pl","href":"pl"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"railmail","hasAudioNarration":false,"actualSubdomain":"railmail","customDomains":["docs.railmail.app"],"gitSource":{"type":"github","owner":"railmail","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"collectionId":"9171cb86-5ee9-4dc3-8726-ebd00ce2e670","liveDeploymentHistoryId":"6a4b8c741150eb12c03684c2","schemaVersion":"v3"},"entitlements":{},"buildId":"6a4b8c741150eb12c03684c2:success","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"en","tag":"API Reference","count":66},{"language":"pl","tag":"Dokumentacja API","count":66},{"language":"en","tag":"Endpoints","count":62},{"language":"pl","tag":"Endpointy","count":62},{"language":"en","tag":"Guides","count":20},{"language":"pl","tag":"Przewodniki","count":20},{"language":"en","tag":"User Guide","count":18},{"language":"pl","tag":"Przewodnik użytkownika","count":18},{"language":"en","tag":"Automations","count":8},{"language":"en","tag":"Segments","count":8},{"language":"pl","tag":"Automatyzacje","count":8},{"language":"pl","tag":"Segmenty","count":8},{"language":"en","tag":"Campaigns","count":7},{"language":"pl","tag":"Kampanie","count":7},{"language":"en","tag":"Overview","count":6},{"language":"en","tag":"Custom Fields","count":6},{"language":"en","tag":"Sending Domain","count":6},{"language":"pl","tag":"Domena wysyłkowa","count":6},{"language":"pl","tag":"Pola niestandardowe","count":6},{"language":"pl","tag":"Subskrybenci","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"en/api-reference/errors","slug":"/en/api-reference/errors","pageMetadata":{"title":"Errors","description":"Railmail returns RFC 7807 problem details for every error.","href":"/en/api-reference/errors"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Railmail returns RFC 7807 problem details for every error.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Railmail uses conventional HTTP status codes to indicate the outcome of a request. Codes in the `,_jsx(_components.code,{children:`2xx`}),` range mean success, `,_jsx(_components.code,{children:`4xx`}),` means the request failed given the information provided, and `,_jsx(_components.code,{children:`5xx`}),` means something went wrong on Railmail’s side.`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-format`,children:`Error format`}),`\n`,_jsxs(_components.p,{children:[`All errors use `,_jsx(_components.a,{href:`https://datatracker.ietf.org/doc/html/rfc7807`,children:`RFC 7807`}),` `,_jsx(_components.code,{children:`application/problem+json`}),`. The body always includes `,_jsx(_components.code,{children:`type`}),`, `,_jsx(_components.code,{children:`title`}),` and `,_jsx(_components.code,{children:`status`}),`, and may include more:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.railmail.app/problems/validation-error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"detail\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"One or more fields are invalid.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"instance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/api/v1/subscribers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-01T10:15:30Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"must be a valid email address\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`A URI identifying the problem type.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:`A short, human-readable summary of the problem.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`The HTTP status code, repeated for convenience.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`detail`})}),_jsx(_components.td,{children:`A human-readable explanation specific to this occurrence.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`instance`})}),_jsx(_components.td,{children:`A URI reference for the specific request that failed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timestamp`})}),_jsx(_components.td,{children:`When the error occurred (ISO 8601).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`errors`})}),_jsx(_components.td,{children:`Present on validation failures: a map of field name to message.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`common-status-codes`,children:`Common status codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Bad request`}),_jsxs(_components.td,{children:[`Fix the request body or parameters. Check the `,_jsx(_components.code,{children:`errors`}),` map for field-level detail.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Unauthorized`}),_jsxs(_components.td,{children:[`The API key is missing or invalid. See `,_jsx(_components.a,{href:`/en/api-reference/authentication`,children:`Authentication`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Forbidden`}),_jsx(_components.td,{children:`The key is valid but lacks the required scope for this operation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Not found`}),_jsx(_components.td,{children:`The resource doesn’t exist in this project.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`Conflict`}),_jsx(_components.td,{children:`The request conflicts with the current state (for example, a duplicate).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`Unprocessable`}),_jsx(_components.td,{children:`The request is well-formed but semantically invalid.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Too many requests`}),_jsxs(_components.td,{children:[`You’ve hit the rate limit. See `,_jsx(_components.a,{href:`/en/api-reference/rate-limits`,children:`Rate limits`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`5xx`})}),_jsx(_components.td,{children:`Server error`}),_jsx(_components.td,{children:`Retry with backoff. If it persists, contact support.`})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Always read the `,_jsx(_components.code,{children:`title`}),` and `,_jsx(_components.code,{children:`detail`}),` fields; they explain what went wrong far better than the status code alone. For `,_jsx(_components.code,{children:`400`}),` responses, the `,_jsx(_components.code,{children:`errors`}),` map pinpoints exactly which fields to fix.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Errors","description":"Railmail returns RFC 7807 problem details for every error.","href":"/en/api-reference/errors"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Error format","slug":"error-format","depth":2,"children":[]},{"title":"Common status codes","slug":"common-status-codes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"railmail","siteName":"Railmail","title":"Errors - Railmail","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/errors","matchLevel":0},"pl":{"href":"/pl/api-reference/errors","matchLevel":1}}},"lastModified":"2026-07-06T11:07:38.034Z","originalFileLocation":"en/api-reference/errors.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Railmail returns RFC 7807 problem details for every error.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Railmail\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/svg+xml\" sizes=\"180x180\" href=\"https://mintcdn.com/railmail/vcWG7wH7qsVlUHJ8/favicon.svg?fit=max\u0026amp;auto=format\u0026amp;n=vcWG7wH7qsVlUHJ8\u0026amp;q=85\u0026amp;s=f2b2c0693cfd57b0b2646572a3b63c31\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"32x32\" href=\"https://mintcdn.com/railmail/vcWG7wH7qsVlUHJ8/favicon.svg?fit=max\u0026amp;auto=format\u0026amp;n=vcWG7wH7qsVlUHJ8\u0026amp;q=85\u0026amp;s=f2b2c0693cfd57b0b2646572a3b63c31\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"16x16\" href=\"https://mintcdn.com/railmail/vcWG7wH7qsVlUHJ8/favicon.svg?fit=max\u0026amp;auto=format\u0026amp;n=vcWG7wH7qsVlUHJ8\u0026amp;q=85\u0026amp;s=f2b2c0693cfd57b0b2646572a3b63c31\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/svg+xml\" href=\"https://mintcdn.com/railmail/vcWG7wH7qsVlUHJ8/favicon.svg?fit=max\u0026amp;auto=format\u0026amp;n=vcWG7wH7qsVlUHJ8\u0026amp;q=85\u0026amp;s=f2b2c0693cfd57b0b2646572a3b63c31\">\u003cmeta data-mint-head property=\"og:title\" content=\"Errors - Railmail\">\u003cmeta data-mint-head property=\"og:description\" content=\"Railmail returns RFC 7807 problem details for every error.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Railmail\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.railmail.app/en/api-reference/errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://railmail.mintlify.app/_mintlify/api/og/v2?division=Overview\u0026amp;title=Errors\u0026amp;description=Railmail+returns+RFC+7807+problem+details+for+every+error.\u0026amp;theme=d16e1e842414a6c61e9fa955\u0026amp;signature=9106343bd426f3bd09b070c956a057d7ff3b13684597d7894920fc9a40ae4f88\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Errors - Railmail\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Railmail returns RFC 7807 problem details for every error.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://railmail.mintlify.app/_mintlify/api/og/v2?division=Overview\u0026amp;title=Errors\u0026amp;description=Railmail+returns+RFC+7807+problem+details+for+every+error.\u0026amp;theme=d16e1e842414a6c61e9fa955\u0026amp;signature=9106343bd426f3bd09b070c956a057d7ff3b13684597d7894920fc9a40ae4f88\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/railmail/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Railmail\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5E6AD2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.railmail.app/en/api-reference/errors\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/errors.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.railmail.app/en/api-reference/errors\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pl\" href=\"https://docs.railmail.app/pl/api-reference/errors\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.railmail.app/en/api-reference/errors\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.railmail.app/#organization\",\"name\":\"Railmail\",\"url\":\"https://docs.railmail.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/railmail/eQPO8l6Qj_PgLc7Q/logo/light.svg?fit=max\u0026auto=format\u0026n=eQPO8l6Qj_PgLc7Q\u0026q=85\u0026s=fbd8bfbe5319f8d5d56bd7ed314d1c3b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.railmail.app#website\",\"name\":\"Railmail\",\"url\":\"https://docs.railmail.app\",\"publisher\":{\"@id\":\"https://docs.railmail.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.railmail.app/en/api-reference/errors#webpage\",\"url\":\"https://docs.railmail.app/en/api-reference/errors\",\"name\":\"Errors\",\"description\":\"Railmail returns RFC 7807 problem details for every error.\",\"dateModified\":\"2026-07-06T11:07:38.034Z\",\"isPartOf\":{\"@id\":\"https://docs.railmail.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.railmail.app/en/api-reference/errors#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.railmail.app/en/api-reference/errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Overview\",\"item\":\"https://docs.railmail.app/en/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Errors\",\"item\":\"https://docs.railmail.app/en/api-reference/errors\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.railmail.app/en/api-reference/errors#article\",\"headline\":\"Errors\",\"name\":\"Errors\",\"description\":\"Railmail returns RFC 7807 problem details for every error.\",\"url\":\"https://docs.railmail.app/en/api-reference/errors\",\"mainEntityOfPage\":{\"@id\":\"https://docs.railmail.app/en/api-reference/errors#webpage\"},\"dateModified\":\"2026-07-06T11:07:38.034Z\",\"publisher\":{\"@id\":\"https://docs.railmail.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.railmail.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Railmail\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Railmail","nav":{"global":{"anchors":[{"anchor":"Portal","icon":"gauge","href":"https://app.railmail.app"}]},"languages":[{"language":"en","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/en"}]},{"tab":"API Reference","pages":[{"group":"Overview","pages":[{"title":"Introduction","href":"/en/api-reference/introduction"},{"title":"Authentication","description":"Authenticate every request with a project-scoped API key and the right scopes.","href":"/en/api-reference/authentication"},{"title":"Errors","href":"/en/api-reference/errors"},{"title":"Rate limits","description":"Requests are limited to 60 per minute per API key.","href":"/en/api-reference/rate-limits"}]},{"group":"Endpoints","pages":[{"group":"Subscribers","pages":[{"title":"List subscribers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/subscribers","href":"/api-reference/subscribers/list-subscribers"},{"title":"Create a subscriber","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/subscribers","href":"/api-reference/subscribers/create-a-subscriber"},{"title":"Get a subscriber by email","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/subscribers/{email}","href":"/api-reference/subscribers/get-a-subscriber-by-email"},{"title":"Delete a subscriber","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/subscribers/{email}","href":"/api-reference/subscribers/delete-a-subscriber"},{"title":"Update a subscriber","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/subscribers/{email}","href":"/api-reference/subscribers/update-a-subscriber"}]},{"group":"Topics","pages":[{"title":"List topics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/topics","href":"/api-reference/topics/list-topics"},{"title":"Create a topic","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/topics","href":"/api-reference/topics/create-a-topic"},{"title":"Get a topic by key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/topics/{topicKey}","href":"/api-reference/topics/get-a-topic-by-key"},{"title":"Delete a topic","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/topics/{topicKey}","href":"/api-reference/topics/delete-a-topic"},{"title":"Update a topic","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/topics/{topicKey}","href":"/api-reference/topics/update-a-topic"}]},{"group":"Consents","pages":[{"title":"List a subscriber's consents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/subscribers/{email}/consents","href":"/api-reference/consents/list-a-subscribers-consents"},{"title":"Grant consent for a topic","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/subscribers/{email}/consents","href":"/api-reference/consents/grant-consent-for-a-topic"},{"title":"Revoke consent for a topic","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/subscribers/{email}/consents/{topicKey}","href":"/api-reference/consents/revoke-consent-for-a-topic"}]},{"group":"Suppressions","pages":[{"title":"Add an email to the suppression list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/suppressions","href":"/api-reference/suppressions/add-an-email-to-the-suppression-list"},{"title":"Check whether an email is suppressed","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/suppressions/{email}","href":"/api-reference/suppressions/check-whether-an-email-is-suppressed"},{"title":"Remove an email from the suppression list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/suppressions/{email}","href":"/api-reference/suppressions/remove-an-email-from-the-suppression-list"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/campaigns","href":"/api-reference/campaigns/list-campaigns"},{"title":"Create a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/campaigns","href":"/api-reference/campaigns/create-a-campaign"},{"title":"Get a campaign by key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/campaigns/{campaignKey}","href":"/api-reference/campaigns/get-a-campaign-by-key"},{"title":"Delete a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/campaigns/{campaignKey}","href":"/api-reference/campaigns/delete-a-campaign"},{"title":"Update a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/campaigns/{campaignKey}","href":"/api-reference/campaigns/update-a-campaign"},{"title":"Schedule a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/campaigns/{campaignKey}/schedule","href":"/api-reference/campaigns/schedule-a-campaign"},{"title":"Send a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/campaigns/{campaignKey}/send","href":"/api-reference/campaigns/send-a-campaign"}]},{"group":"Segments","pages":[{"title":"List segments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/segments","href":"/api-reference/segments/list-segments"},{"title":"Create a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/segments","href":"/api-reference/segments/create-a-segment"},{"title":"Get a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/segments/{segmentId}","href":"/api-reference/segments/get-a-segment"},{"title":"Delete a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/segments/{segmentId}","href":"/api-reference/segments/delete-a-segment"},{"title":"Update a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/segments/{segmentId}","href":"/api-reference/segments/update-a-segment"},{"title":"List segment members","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/segments/{segmentId}/members","href":"/api-reference/segments/list-segment-members"},{"title":"Add members to a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/segments/{segmentId}/members","href":"/api-reference/segments/add-members-to-a-segment"},{"title":"Remove members from a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/segments/{segmentId}/members","href":"/api-reference/segments/remove-members-from-a-segment"}]},{"group":"Custom Fields","pages":[{"title":"List active custom fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/custom-fields","href":"/api-reference/custom-fields/list-active-custom-fields"},{"title":"Create a custom field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/custom-fields","href":"/api-reference/custom-fields/create-a-custom-field"},{"title":"Get a custom field by key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/custom-fields/{key}","href":"/api-reference/custom-fields/get-a-custom-field-by-key"},{"title":"Archive a custom field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/custom-fields/{key}","href":"/api-reference/custom-fields/archive-a-custom-field"},{"title":"Update custom field details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/custom-fields/{key}/details","href":"/api-reference/custom-fields/update-custom-field-details"},{"title":"Update custom field config","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/custom-fields/{key}/config","href":"/api-reference/custom-fields/update-custom-field-config"}]},{"group":"Automations","pages":[{"title":"List automations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/automations","href":"/api-reference/automations/list-automations"},{"title":"Create an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/automations","href":"/api-reference/automations/create-an-automation"},{"title":"Get an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/automations/{automationId}","href":"/api-reference/automations/get-an-automation"},{"title":"Delete an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/automations/{automationId}","href":"/api-reference/automations/delete-an-automation"},{"title":"Update an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/automations/{automationId}","href":"/api-reference/automations/update-an-automation"},{"title":"Update automation content","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/automations/{automationId}/content","href":"/api-reference/automations/update-automation-content"},{"title":"Activate an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/automations/{automationId}/activate","href":"/api-reference/automations/activate-an-automation"},{"title":"Pause an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/automations/{automationId}/pause","href":"/api-reference/automations/pause-an-automation"}]},{"group":"Sending Domain","pages":[{"title":"Get the project's sending domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/sending-domain","href":"/api-reference/sending-domain/get-the-projects-sending-domain"},{"title":"Set up a custom sending domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sending-domain","href":"/api-reference/sending-domain/set-up-a-custom-sending-domain"},{"title":"Remove the custom sending domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/sending-domain","href":"/api-reference/sending-domain/remove-the-custom-sending-domain"},{"title":"Update the sending domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/sending-domain","href":"/api-reference/sending-domain/update-the-sending-domain"},{"title":"Get DNS setup instructions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/sending-domain/dns-instructions","href":"/api-reference/sending-domain/get-dns-setup-instructions"},{"title":"Verify the domain's DNS records","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sending-domain/verify-dns","href":"/api-reference/sending-domain/verify-the-domains-dns-records"}]},{"group":"Campaign Reports","pages":[{"title":"Get the campaign report","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/campaigns/{campaignKey}/report","href":"/api-reference/campaign-reports/get-the-campaign-report"},{"title":"Get live campaign statistics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/campaigns/{campaignKey}/report/statistics","href":"/api-reference/campaign-reports/get-live-campaign-statistics"},{"title":"Get the statistics timeline","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/campaigns/{campaignKey}/report/timeline","href":"/api-reference/campaign-reports/get-the-statistics-timeline"},{"title":"Export statistics as CSV","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/campaigns/{campaignKey}/report/export","href":"/api-reference/campaign-reports/export-statistics-as-csv"}]},{"group":"Billing","pages":[{"title":"Get the account subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/subscription","href":"/api-reference/billing/get-the-account-subscription"},{"title":"List available plans","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/plans","href":"/api-reference/billing/list-available-plans"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/invoices","href":"/api-reference/billing/list-invoices"},{"title":"Get the usage summary","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/usage","href":"/api-reference/billing/get-the-usage-summary"}]},{"group":"AI Credits","pages":[{"title":"Get the AI credit balance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/credits/balance","href":"/api-reference/ai-credits/get-the-ai-credit-balance"},{"title":"List AI credit transactions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/credits/transactions","href":"/api-reference/ai-credits/list-ai-credit-transactions"}]},{"group":"Project","pages":[{"title":"Get the current project","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/project","href":"/api-reference/project/get-the-current-project"}]}]}]}]},{"language":"pl","pages":[{"title":"pl","href":"/pl/api-reference/errors"}]}]},"title":"Errors - Railmail","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":[],"chunks":[]}