Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application’s allowed origins, and a server with an API key in X-Api-Key.
A native app attestation, built on a challenge from POST /users/attestation/challenge (single use, five minutes) and bound to "..sign-in". Each challenge counts toward a limit of 120 per client network (IPv4 address or IPv6 /64) per hour, and an email sign-in uses two (the code request and the sign-in); past it the challenge request answers 429. The OfflineID React Native SDK builds it when attestation providers are configured. On a device that cannot attest, the SDK sends the platform and the reason in unavailable instead of a proof. See https://www.offlineprotocol.com/docs/id-sdk/app-attestation.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Offline Protocol","description":"Offline Protocol developer documentation: the offline mesh networking SDK for React Native, Python and Rust, BLE messaging, OfflineID, CLI, MCP server and APIs.","colors":{"primary":"#264a82","light":"#8fb6f2","dark":"#1a3a6e"},"logo":{"light":"https://mintcdn.com/offlineprotocol/YyeFdR-brjMBY-La/logo/light.png?fit=max\u0026auto=format\u0026n=YyeFdR-brjMBY-La\u0026q=85\u0026s=4f7832ee21c4f4f352d18b64550d9b77","dark":"https://mintcdn.com/offlineprotocol/YyeFdR-brjMBY-La/logo/dark.png?fit=max\u0026auto=format\u0026n=YyeFdR-brjMBY-La\u0026q=85\u0026s=58db71158e2ae1ec639c6c8c96575316"},"favicon":{"light":"https://mintcdn.com/offlineprotocol/VMldQlbkvDhV1TSC/favicon.png?fit=max\u0026auto=format\u0026n=VMldQlbkvDhV1TSC\u0026q=85\u0026s=14651d53ad7683a3f917535260caac5d","dark":"https://mintcdn.com/offlineprotocol/VMldQlbkvDhV1TSC/favicon-white.png?fit=max\u0026auto=format\u0026n=VMldQlbkvDhV1TSC\u0026q=85\u0026s=850d8841e91475ed1f4fe5239a2c773f"},"api":{"openapi":"api-reference/openapi.json"},"navbar":{"links":[{"href":"mailto:support@offlineprotocol.com","label":"Support"}],"primary":{"type":"button","label":"Developer portal","href":"https://dev.offlineprotocol.com"}},"footer":{"socials":{"x":"https://x.com/offlineprotocol","github":"https://github.com/offline-protocol","linkedin":"https://linkedin.com/company/offlineprotocol"},"links":[{"header":"Legal","items":[{"label":"Privacy policy","href":"https://www.offlineprotocol.com/privacy"},{"label":"Developer terms","href":"https://www.offlineprotocol.com/legal/developer-terms"},{"label":"Acceptable use","href":"https://www.offlineprotocol.com/legal/acceptable-use"}]},{"header":"Data processing","items":[{"label":"Addendum (DPA)","href":"https://www.offlineprotocol.com/legal/dpa"},{"label":"Handling by service","href":"https://www.offlineprotocol.com/docs/legal/data-handling"}]},{"header":"Policies","items":[{"label":"Policies and licensing","href":"https://www.offlineprotocol.com/docs/legal"},{"label":"Report a vulnerability","href":"https://www.offlineprotocol.com/legal/security"}]}]},"search":{"prompt":"Search workflows, methods and errors…"},"seo":{"metatags":{"canonical":"https://www.offlineprotocol.com/docs","og:image":"https://www.offlineprotocol.com/docs/images/og/docs.8a97016a43.png","og:image:alt":"Offline Protocol developer documentation","twitter:image":"https://www.offlineprotocol.com/docs/images/og/docs.8a97016a43.png","twitter:site":"@offlineprotocol","og:site_name":"Offline Protocol"},"organization":{"id":"https://www.offlineprotocol.com/#organization","name":"Offline Protocol","url":"https://www.offlineprotocol.com","sameAs":["https://x.com/offlineprotocol","https://github.com/Offline-Protocol","https://www.linkedin.com/company/offlineprotocol","https://www.npmjs.com/org/offline-protocol"]},"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"markdown":{"instructions":["These docs target Mesh SDK v0.32.0. Match the installed package and binding before generating code. Start at /getting-started/agents for task-specific reading paths. Apps that call enableTelemetry on 0.26.0 to 0.29.0 should update to 0.30.0 or later: the telemetry uploader trusts only the telemetry endpoint's issuing roots from 0.30.0.","Call the company and product Offline Protocol, never Offline alone. Current packages: @offline-protocol/mesh-sdk 0.32.0 (React Native), offline-protocol-sdk 0.32.0 on PyPI (Python 3.10 to 3.13; wheels for macOS 14+ arm64, Linux x86_64 and aarch64 with glibc 2.34+, Windows x86_64; other hosts build from source; extras lan and http add LAN discovery, the HTTP front and offline-protocol-verify), the offline-protocol crates 0.32.0 on crates.io, the OfflineProtocolSDK Swift package 0.32.0 (preview, iOS 13+ only), the Android library com.offlineprotocol:offline-protocol-sdk 0.32.0 on Maven Central (preview, minSdk 24), the Java binding com.offlineprotocol:offline-protocol-java 0.32.0 on Maven Central (JDK 22+, native library from the GitHub release's desktop archives), the C header offline_protocol.h with the native library in the GitHub release's desktop archives, the Ruby binding offline_protocol 0.32.0 on RubyGems (Ruby 3.3+, native library from the GitHub release's desktop archives), the C# binding (preview, .NET 8; source in bindings/csharp in the SDK repository at tag v0.32.0, a project reference over the C API, not on NuGet), the browser binding (experimental; the offline-protocol-web crate 0.32.0 on crates.io, with the JavaScript in bindings/web built from the SDK repository, not on npm), the offline_protocol Flutter plugin (preview, not on pub.dev; a path dependency on the SDK repository at tag v0.32.0; MeshSdk carries the React Native module's native surface), the service container image ghcr.io/offline-protocol/offline-protocol-service 0.32.0 (linux/amd64 and linux/arm64), @offline-protocol/id-react 0.3.0, @offline-protocol/id-react-native 0.4.0, @offline-protocol/pol 0.1.2 and @offline-protocol/cli 0.3.2 (account setup commands such as offline apps status, offline apps native and offline apply since 0.3.0). Canonical docs URLs start with https://www.offlineprotocol.com/docs.","The Mesh SDK runs in a native app or gateway, and from 0.31.0 in a browser through the experimental browser binding (a full node in a Web Worker; see /mesh-sdk/web). The OfflineID SDK for React does not provide browser mesh transport. Local mesh operation does not require a portal account or API key. The Mesh SDK appId is a mesh app identifier the developer chooses, not the portal App ID (app_...) that OfflineID and Proof of Location require.","In v0.32.0 service RPC bodies are sealed in the 1:1 MLS session once the recipient runs 0.29 or later and the session is confirmed; discovery, the first request to a provider never met, and requests to older peers are signed plaintext, so keep secrets out of service bodies unless the event says encrypted: true. Service subscriptions (subscribeService, publishServiceUpdate, from 0.32.0) are always sealed in the 1:1 MLS session with no plaintext fallback; under the default restricted policy the provider app must answer service_subscribe_received with acceptServiceSubscription or rejectServiceSubscription within 60 seconds. Content that begins with __MEMBER__ is a reserved prefix and is refused. The HTTP front (offline-protocol-service --http) always carries calls inside encrypted direct messages but does not authorize callers. Message delivery, durable local acceptance and backend commit are distinct outcomes. Use the workflow guide for the required application logic.","Offline Protocol CLI 0.3.2 is on npm (@offline-protocol/cli, command offline). Its local MCP server, named offline-protocol, runs with npx -y @offline-protocol/cli@0.3.2 mcp serve and requires no login or key. Hosted MCP is at https://mcp.offlineprotocol.com/mcp with an app API key in Authorization: Bearer and the matching App ID in x-app-id; organization keys are rejected, and Claude Desktop and Claude.ai cannot send these headers; there, use the public read-only endpoint https://mcp.offlineprotocol.com/public/mcp as a custom connector, or local MCP to scaffold or edit projects. Follow /tools/overview for setup and do not invent commands beyond it. MCP provides integration context and planning, not mesh execution; file-writing tools are local only.","In v0.32.0 phone Wi-Fi peer streams carry data: Android over Wi-Fi Direct (the SDK forms the group with autoAccept on Android 10+) and over the Wi-Fi network it is on (DNS-SD), iOS over Network framework (LAN or AWDL). Android and iOS meet over that slot only on a shared Wi-Fi network that allows multicast; iOS 0.28 and later does not see iOS 0.27 or earlier over it. Otherwise use BLE or a provisioned relay across platforms. The Swift and Android packages are previews; the Android library is on Maven Central from 0.29.0 only, so never give a Gradle line for an earlier version. The receiver core ACKs before application persistence; use application acceptance for durable workflows.","OfflineID App IDs are public. A request naming an application needs a credential: an allowed browser origin, an API key in X-Api-Key from a server, or, from an iOS or Android app, an attestation from a build registered to the application (iOS bundle ID and Team ID, Android package and signing certificate SHA-256). Register native apps with offline apps native add or offline apply, pass attestation providers (createExpoAppIntegrityProviders with @expo/app-integrity) to OfflineAppProvider, sign in on a physical device, and check readiness with offline apps status. Follow /getting-started/agent-quickstart and /id-sdk/app-attestation; error responses list the fixing commands in data.next_steps.","Proof of Location is Sepolia testnet witness evidence, not zero-knowledge proof or proof of presence. The geohash is public onchain. Read /proof-of-location/security before integration."]},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/Offline-Protocol/offline-protocol-sdk"},{"anchor":"Website","icon":"globe","href":"https://www.offlineprotocol.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"offlineprotocol","hasAudioNarration":false,"actualSubdomain":"offlineprotocol","customDomains":["www.offlineprotocol.com"],"gitSource":{"type":"github","owner":"offline-protocol","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aece7789dbf4329f32f0464","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"SDK reference","count":43},{"language":"default","tag":"Identity and hosted APIs","count":33},{"language":"default","tag":"Build","count":25},{"language":"default","tag":"SDK setup","count":17},{"language":"default","tag":"Profiles","count":11},{"language":"default","tag":"API by task","count":11},{"language":"default","tag":"Start here","count":8},{"language":"default","tag":"Architecture","count":8},{"language":"default","tag":"OfflineID SDK","count":7},{"language":"default","tag":"Types and events","count":7}]},"assistantConfig":{},"basePath":"/docs","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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","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":"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":"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":"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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html,body{background-color:#ffffff}html.dark,html.dark body{background-color:#0a0b0e}#footer a[href*=\"mintlify.com\"]{color:#59616e}.dark #footer a[href*=\"mintlify.com\"]{color:#a9b0bc}html:not(.dark) #footer a,html:not(.dark) .text-gray-500{color:#59616e}html:not(.dark) .method-nav-pill .text-green-700{color:#166534}html:not(.dark) .method-nav-pill .text-orange-700{color:#9a3412}html:not(.dark) .text-red-600{color:#b91c1c}.dark #footer a{color:#a9b0bc}html:not(.dark) .text-yellow-700{color:#854d0e}html:not(.dark) .method-pill.text-green-700{color:#166534}[class~=\"bg-[#C28C30]\"]{background-color:#854d0e}[class~=\"bg-[#2AB673]\"]{background-color:#166534}html:not(.dark) [data-component-part=\"field-info-pill\"] .text-stone-400{color:#59616e}.dark [data-component-part=\"field-info-pill\"] .text-stone-400{color:#a9b0bc}"}],"page":{"pagePath":"api-reference/auth/send-auth-code","slug":"/api-reference/auth/send-auth-code","pageMetadata":{"openapi":"post /auth/send-code","og:image":"https://www.offlineprotocol.com/docs/images/og/api-reference-auth-send-auth-code.b757124e6b.png","twitter:image":"https://www.offlineprotocol.com/docs/images/og/api-reference-auth-send-auth-code.b757124e6b.png","title":"Send email sign-in code","description":"Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application's allowed origins, and a server with an API key in X-Api-Key.","href":"/api-reference/auth/send-auth-code"},"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: \"Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application’s allowed origins, and a server with an API key in X-Api-Key.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /auth/send-code","og:image":"https://www.offlineprotocol.com/docs/images/og/api-reference-auth-send-auth-code.b757124e6b.png","twitter:image":"https://www.offlineprotocol.com/docs/images/og/api-reference-auth-send-auth-code.b757124e6b.png","title":"Send email sign-in code","description":"Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application's allowed origins, and a server with an API key in X-Api-Key.","href":"/api-reference/auth/send-auth-code"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Send email sign-in code","description":"Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application's allowed origins, and a server with an API key in X-Api-Key.","requestBody":"ee0991e3-0d61-4e4b-9b71-ee6a55572f52","responses":{"200":"8ba88ce0-268d-46fb-972c-2f4110acbf25","400":"9f6152d5-1e3c-4647-9b95-6fd34efb7c5c","401":"adc5bda9-d280-409a-8cb0-83d8e13c33df","402":"cced8def-fea6-43d2-bd22-9df1c1c36280","403":"d66fb3cb-5141-429a-92e1-bf6380d47611","429":"267f6e59-d219-44c5-92fa-696037c3816f","502":"1d7a8954-6bd7-427d-8a6f-ad2ec4a59d02","503":"3bd37909-8f89-4471-9cf4-9a32353560ab"},"parameters":["55ee5e99-516b-43f9-88ab-b6665c20d7d6"],"method":"post","type":"path","servers":["aebc6126-e948-42a7-99f9-93a7028cb3d2"],"security":[],"path":"/auth/send-code","baseUrlOptions":["https://api.offlineprotocol.com/api/v1"],"title":"Send email sign-in code","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"55ee5e99-516b-43f9-88ab-b6665c20d7d6":{"name":"X-App-Id","in":"header","required":false,"description":"Public application ID (app_...). Send on application requests for attribution and product controls. Not an API secret.","schema":{"type":"string","isRequired":false,"description":"Public application ID (app_...). Send on application requests for attribution and product controls. Not an API secret.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","isRequired":true,"uniqueKey":"email","typeLabel":"string\u003cemail>"},"attestation":{"oneOf":[{"type":"object","title":"iOS App Attest assertion","description":"A native app attestation, built on a challenge from POST /users/attestation/challenge (single use, five minutes) and bound to \"\u003cchallenge>.\u003capp id>.sign-in\". Each challenge counts toward a limit of 120 per client network (IPv4 address or IPv6 /64) per hour, and an email sign-in uses two (the code request and the sign-in); past it the challenge request answers 429. The OfflineID React Native SDK builds it when attestation providers are configured. On a device that cannot attest, the SDK sends the platform and the reason in `unavailable` instead of a proof. See https://www.offlineprotocol.com/docs/id-sdk/app-attestation.","required":["platform","challenge","keyId","assertion"],"properties":{"platform":{"const":"ios","isRequired":true,"uniqueKey":"attestation.oneOf.0.platform","typeLabel":"any"},"challenge":{"type":"string","isRequired":true,"uniqueKey":"attestation.oneOf.0.challenge","typeLabel":"string"},"keyId":{"type":"string","description":"App Attest key id, registered once per install with POST /users/attestation/ios/register.","isRequired":true,"uniqueKey":"attestation.oneOf.0.keyId","typeLabel":"string"},"assertion":{"type":"string","description":"Base64 App Attest assertion over SHA-256 of the binding string.","isRequired":true,"uniqueKey":"attestation.oneOf.0.assertion","typeLabel":"string"}},"uniqueKey":"attestation.oneOf.0","typeLabel":"iOS App Attest assertion · object"},{"type":"object","title":"Android hardware key attestation","description":"A native app attestation, built on a challenge from POST /users/attestation/challenge (single use, five minutes) and bound to \"\u003cchallenge>.\u003capp id>.sign-in\". Each challenge counts toward a limit of 120 per client network (IPv4 address or IPv6 /64) per hour, and an email sign-in uses two (the code request and the sign-in); past it the challenge request answers 429. The OfflineID React Native SDK builds it when attestation providers are configured. On a device that cannot attest, the SDK sends the platform and the reason in `unavailable` instead of a proof. See https://www.offlineprotocol.com/docs/id-sdk/app-attestation.","required":["platform","challenge","certificateChain"],"properties":{"platform":{"const":"android","isRequired":true,"uniqueKey":"attestation.oneOf.1.platform","typeLabel":"any"},"challenge":{"type":"string","isRequired":true,"uniqueKey":"attestation.oneOf.1.challenge","typeLabel":"string"},"certificateChain":{"type":"array","items":{"type":"string","uniqueKey":"attestation.oneOf.1.certificateChain.items.[INDEX]","typeLabel":"string"},"description":"Certificate chain of a fresh Android Keystore key whose attestation challenge is SHA-256 of the binding string or its UTF-8 bytes. Each certificate DER, standard base64, leaf first. The chain must end at Google's hardware attestation roots; any other chain, such as a software keystore's, is refused with 403 attestation_failed (reason untrusted_chain).","isRequired":true,"uniqueKey":"attestation.oneOf.1.certificateChain","typeLabel":"string[]"},"packageName":{"type":"string","description":"Optional; must match the attested package.","uniqueKey":"attestation.oneOf.1.packageName","typeLabel":"string"}},"uniqueKey":"attestation.oneOf.1","typeLabel":"Android hardware key attestation · object"},{"type":"object","title":"Device cannot attest","description":"A native app attestation, built on a challenge from POST /users/attestation/challenge (single use, five minutes) and bound to \"\u003cchallenge>.\u003capp id>.sign-in\". Each challenge counts toward a limit of 120 per client network (IPv4 address or IPv6 /64) per hour, and an email sign-in uses two (the code request and the sign-in); past it the challenge request answers 429. The OfflineID React Native SDK builds it when attestation providers are configured. On a device that cannot attest, the SDK sends the platform and the reason in `unavailable` instead of a proof. See https://www.offlineprotocol.com/docs/id-sdk/app-attestation.","required":["platform","unavailable"],"properties":{"platform":{"type":"string","enum":["ios","android"],"isRequired":true,"uniqueKey":"attestation.oneOf.2.platform","typeLabel":"enum\u003cstring>"},"unavailable":{"type":"string","enum":["simulator","emulator","expo_go","unsupported","keystore_error"],"isRequired":true,"uniqueKey":"attestation.oneOf.2.unavailable","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"attestation.oneOf.2","typeLabel":"Device cannot attest · object"}],"uniqueKey":"attestation","typeLabel":"iOS App Attest assertion · object | Android hardware key attestation · object | Device cannot attest · object"}},"required":["email"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"email":"jsmith@example.com","attestation":{"platform":"ios","challenge":"\u003cstring>","keyId":"\u003cstring>","assertion":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8ba88ce0-268d-46fb-972c-2f4110acbf25":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["message","data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","data":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"9f6152d5-1e3c-4647-9b95-6fd34efb7c5c":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"retryAfter":{"type":"integer","uniqueKey":"error.retryAfter","typeLabel":"integer"},"currentHourCount":{"type":"integer","uniqueKey":"error.currentHourCount","typeLabel":"integer"},"limit":{"type":"integer","uniqueKey":"error.limit","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","data":{},"error":{"message":"\u003cstring>","code":"\u003cstring>","retryAfter":123,"currentHourCount":123,"limit":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"adc5bda9-d280-409a-8cb0-83d8e13c33df":{"description":"The request names an application without a credential for it (`app_credentials_required`; `data.missing` says whether the application needs a native app registered, an attestation, another credential, or development mode for a development-mode session) or the application does not exist (`invalid_app`). `data.next_steps` lists the CLI commands that fix it.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Gateway refusal of a request that names an application without a credential for it. The code is the top-level error string.","required":["message","error"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"error":{"type":"string","enum":["app_credentials_required","invalid_app","origin_not_allowed","app_id_mismatch"],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"enum\u003cstring>"},"data":{"type":"object","properties":{"app_id":{"type":"string","uniqueKey":"oneOf.0.data.app_id","typeLabel":"string"},"missing":{"type":"string","enum":["native_registration","attestation","credential","development_mode"],"uniqueKey":"oneOf.0.data.missing","typeLabel":"enum\u003cstring>"},"native_registered":{"type":"boolean","uniqueKey":"oneOf.0.data.native_registered","typeLabel":"boolean"},"native_platforms":{"type":"array","items":{"type":"string","enum":["ios","android"],"uniqueKey":"oneOf.0.data.native_platforms.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"oneOf.0.data.native_platforms","typeLabel":"enum\u003cstring>[]"},"next_steps":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.data.next_steps.items.[INDEX]","typeLabel":"string"},"description":"CLI commands that complete the setup.","uniqueKey":"oneOf.0.data.next_steps","typeLabel":"string[]"},"docs":{"type":"string","uniqueKey":"oneOf.0.data.docs","typeLabel":"string"}},"uniqueKey":"oneOf.0.data","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"oneOf.1.data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.1.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.data","typeLabel":"object | null"},"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"retryAfter":{"type":"integer","uniqueKey":"oneOf.1.error.retryAfter","typeLabel":"integer"},"currentHourCount":{"type":"integer","uniqueKey":"oneOf.1.error.currentHourCount","typeLabel":"integer"},"limit":{"type":"integer","uniqueKey":"oneOf.1.error.limit","typeLabel":"integer"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","error":"app_credentials_required","data":{"app_id":"\u003cstring>","missing":"native_registration","native_registered":true,"native_platforms":["ios"],"next_steps":["\u003cstring>"],"docs":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"cced8def-fea6-43d2-bd22-9df1c1c36280":{"description":"Sign-in is paused for this application because its organization reached a usage limit or has a failed payment. The message is \"Sign-in is paused for this app. Please contact the app's developer.\" Do not retry.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"retryAfter":{"type":"integer","uniqueKey":"error.retryAfter","typeLabel":"integer"},"currentHourCount":{"type":"integer","uniqueKey":"error.currentHourCount","typeLabel":"integer"},"limit":{"type":"integer","uniqueKey":"error.limit","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","data":{},"error":{"message":"\u003cstring>","code":"\u003cstring>","retryAfter":123,"currentHourCount":123,"limit":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"d66fb3cb-5141-429a-92e1-bf6380d47611":{"description":"Refused: `attestation_required`, `attestation_failed` (see `data.reason`), `attestation_key_unknown` (register a new App Attest key), `attestation_not_configured` or `development_mode_required` (a simulator, emulator or Expo Go while development mode is off) in `error.code`; or a browser origin that is not allowed (`origin_not_allowed` in `error`).","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Sign-in service refusal of a native code request or sign-in. The code is error.code.","required":["message","error"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["attestation_required","attestation_failed","attestation_key_unknown","attestation_not_configured","code_requests_limited","development_mode_required","development_sign_ins_limited","degraded_sign_ins_limited"],"isRequired":true,"uniqueKey":"oneOf.0.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","uniqueKey":"oneOf.0.error.message","typeLabel":"string"}},"required":["code"],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"object"},"data":{"type":"object","properties":{"app_id":{"type":"string","uniqueKey":"oneOf.0.data.app_id","typeLabel":"string"},"missing":{"type":"string","enum":["native_registration","attestation","valid_attestation","development_mode"],"uniqueKey":"oneOf.0.data.missing","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"Why a proof failed or trust was lowered, for example signing_certificate_mismatch, app_not_registered, development_not_allowed or an Android device state such as bootloader_unlocked.","uniqueKey":"oneOf.0.data.reason","typeLabel":"string"},"next_steps":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.data.next_steps.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.data.next_steps","typeLabel":"string[]"},"docs":{"type":"string","uniqueKey":"oneOf.0.data.docs","typeLabel":"string"}},"uniqueKey":"oneOf.0.data","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Gateway refusal of a request that names an application without a credential for it. The code is the top-level error string.","required":["message","error"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"string","enum":["app_credentials_required","invalid_app","origin_not_allowed","app_id_mismatch"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"enum\u003cstring>"},"data":{"type":"object","properties":{"app_id":{"type":"string","uniqueKey":"oneOf.1.data.app_id","typeLabel":"string"},"missing":{"type":"string","enum":["native_registration","attestation","credential","development_mode"],"uniqueKey":"oneOf.1.data.missing","typeLabel":"enum\u003cstring>"},"native_registered":{"type":"boolean","uniqueKey":"oneOf.1.data.native_registered","typeLabel":"boolean"},"native_platforms":{"type":"array","items":{"type":"string","enum":["ios","android"],"uniqueKey":"oneOf.1.data.native_platforms.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"oneOf.1.data.native_platforms","typeLabel":"enum\u003cstring>[]"},"next_steps":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.data.next_steps.items.[INDEX]","typeLabel":"string"},"description":"CLI commands that complete the setup.","uniqueKey":"oneOf.1.data.next_steps","typeLabel":"string[]"},"docs":{"type":"string","uniqueKey":"oneOf.1.data.docs","typeLabel":"string"}},"uniqueKey":"oneOf.1.data","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.message","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"oneOf.2.data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.2.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.data","typeLabel":"object | null"},"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"oneOf.2.error.message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"oneOf.2.error.code","typeLabel":"string"},"retryAfter":{"type":"integer","uniqueKey":"oneOf.2.error.retryAfter","typeLabel":"integer"},"currentHourCount":{"type":"integer","uniqueKey":"oneOf.2.error.currentHourCount","typeLabel":"integer"},"limit":{"type":"integer","uniqueKey":"oneOf.2.error.limit","typeLabel":"integer"}},"uniqueKey":"oneOf.2.error","typeLabel":"object"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","error":{"code":"attestation_required","message":"\u003cstring>"},"data":{"app_id":"\u003cstring>","missing":"native_registration","reason":"\u003cstring>","next_steps":["\u003cstring>"],"docs":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"267f6e59-d219-44c5-92fa-696037c3816f":{"description":"Rate limited; honor retry guidance. In `error.code`: `code_requests_limited`, the application's hourly cap of email codes requested without an attestation (attach one to lift it); `development_sign_ins_limited`, the hourly cap on development-mode requests; `degraded_sign_ins_limited`, the hourly cap on requests from Android devices without full attestation, per application or per client network.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"oneOf.0.data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.0.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.data","typeLabel":"object | null"},"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"oneOf.0.error.message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"oneOf.0.error.code","typeLabel":"string"},"retryAfter":{"type":"integer","uniqueKey":"oneOf.0.error.retryAfter","typeLabel":"integer"},"currentHourCount":{"type":"integer","uniqueKey":"oneOf.0.error.currentHourCount","typeLabel":"integer"},"limit":{"type":"integer","uniqueKey":"oneOf.0.error.limit","typeLabel":"integer"}},"uniqueKey":"oneOf.0.error","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Sign-in service refusal of a native code request or sign-in. The code is error.code.","required":["message","error"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["attestation_required","attestation_failed","attestation_key_unknown","attestation_not_configured","code_requests_limited","development_mode_required","development_sign_ins_limited","degraded_sign_ins_limited"],"isRequired":true,"uniqueKey":"oneOf.1.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"}},"required":["code"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"},"data":{"type":"object","properties":{"app_id":{"type":"string","uniqueKey":"oneOf.1.data.app_id","typeLabel":"string"},"missing":{"type":"string","enum":["native_registration","attestation","valid_attestation","development_mode"],"uniqueKey":"oneOf.1.data.missing","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"Why a proof failed or trust was lowered, for example signing_certificate_mismatch, app_not_registered, development_not_allowed or an Android device state such as bootloader_unlocked.","uniqueKey":"oneOf.1.data.reason","typeLabel":"string"},"next_steps":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.data.next_steps.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.data.next_steps","typeLabel":"string[]"},"docs":{"type":"string","uniqueKey":"oneOf.1.data.docs","typeLabel":"string"}},"uniqueKey":"oneOf.1.data","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","data":{},"error":{"message":"\u003cstring>","code":"\u003cstring>","retryAfter":123,"currentHourCount":123,"limit":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"1d7a8954-6bd7-427d-8a6f-ad2ec4a59d02":{"description":"Gateway or upstream failure","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"oneOf.0.data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.0.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.data","typeLabel":"object | null"},"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"oneOf.0.error.message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"oneOf.0.error.code","typeLabel":"string"},"retryAfter":{"type":"integer","uniqueKey":"oneOf.0.error.retryAfter","typeLabel":"integer"},"currentHourCount":{"type":"integer","uniqueKey":"oneOf.0.error.currentHourCount","typeLabel":"integer"},"limit":{"type":"integer","uniqueKey":"oneOf.0.error.limit","typeLabel":"integer"}},"uniqueKey":"oneOf.0.error","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"string","uniqueKey":"oneOf.1.error","typeLabel":"string"},"upstream":{"type":"string","uniqueKey":"oneOf.1.upstream","typeLabel":"string"},"code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.1.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.code","typeLabel":"string | null"},"detail":{"type":"string","uniqueKey":"oneOf.1.detail","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","data":{},"error":{"message":"\u003cstring>","code":"\u003cstring>","retryAfter":123,"currentHourCount":123,"limit":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"3bd37909-8f89-4471-9cf4-9a32353560ab":{"description":"Service unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"retryAfter":{"type":"integer","uniqueKey":"error.retryAfter","typeLabel":"integer"},"currentHourCount":{"type":"integer","uniqueKey":"error.currentHourCount","typeLabel":"integer"},"limit":{"type":"integer","uniqueKey":"error.limit","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","data":{},"error":{"message":"\u003cstring>","code":"\u003cstring>","retryAfter":123,"currentHourCount":123,"limit":123}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"aebc6126-e948-42a7-99f9-93a7028cb3d2":{"url":"https://api.offlineprotocol.com/api/v1"}}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"offlineprotocol","siteName":"Offline Protocol","title":"Send email sign-in code - Offline Protocol","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T12:33:42.902Z","originalFileLocation":"api-reference/auth/send-auth-code.mdx"},"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=\"Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application\u0026#x27;s allowed origins, and a server with an API key in X-Api-Key.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Offline Protocol\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send email sign-in code - Offline Protocol\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application\u0026#x27;s allowed origins, and a server with an API key in X-Api-Key.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Offline Protocol\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://www.offlineprotocol.com/docs/images/og/api-reference-auth-send-auth-code.b757124e6b.png\">\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=\"Send email sign-in code - Offline Protocol\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application\u0026#x27;s allowed origins, and a server with an API key in X-Api-Key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://www.offlineprotocol.com/docs/images/og/api-reference-auth-send-auth-code.b757124e6b.png\">\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=\"/docs/mintlify-assets/_mintlify/favicons/offlineprotocol/4muaMRT17GBaPY7a/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Offline Protocol\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#264a82\">\u003cmeta data-mint-head name=\"og:image:alt\" content=\"Offline Protocol developer documentation\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/auth/send-auth-code.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.offlineprotocol.com/#organization\",\"name\":\"Offline Protocol\",\"url\":\"https://www.offlineprotocol.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/offlineprotocol/YyeFdR-brjMBY-La/logo/light.png?fit=max\u0026auto=format\u0026n=YyeFdR-brjMBY-La\u0026q=85\u0026s=4f7832ee21c4f4f352d18b64550d9b77\"},\"sameAs\":[\"https://x.com/offlineprotocol\",\"https://github.com/Offline-Protocol\",\"https://www.linkedin.com/company/offlineprotocol\",\"https://www.npmjs.com/org/offline-protocol\"]},{\"@type\":\"WebSite\",\"@id\":\"https://www.offlineprotocol.com/docs#website\",\"name\":\"Offline Protocol\",\"url\":\"https://www.offlineprotocol.com/docs\",\"publisher\":{\"@id\":\"https://www.offlineprotocol.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code#webpage\",\"url\":\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code\",\"name\":\"Send email sign-in code\",\"description\":\"Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application's allowed origins, and a server with an API key in X-Api-Key.\",\"dateModified\":\"2026-11-04T12:33:42.902Z\",\"isPartOf\":{\"@id\":\"https://www.offlineprotocol.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Offline Protocol\",\"item\":\"https://www.offlineprotocol.com/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send email sign-in code\",\"item\":\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code#apireference\",\"headline\":\"Send email sign-in code\",\"name\":\"Send email sign-in code\",\"description\":\"Sends a one-time OfflineID sign-in code to the provided email address for the application identified by X-App-Id. Exchange the code with POST /auth/verify-code. A native app attaches an attestation from a registered build; a browser is accepted from the application's allowed origins, and a server with an API key in X-Api-Key.\",\"url\":\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code\",\"mainEntityOfPage\":{\"@id\":\"https://www.offlineprotocol.com/docs/api-reference/auth/send-auth-code#webpage\"},\"image\":\"https://www.offlineprotocol.com/docs/images/og/api-reference-auth-send-auth-code.b757124e6b.png\",\"dateModified\":\"2026-11-04T12:33:42.902Z\",\"publisher\":{\"@id\":\"https://www.offlineprotocol.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.offlineprotocol.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Offline Protocol\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Offline Protocol","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/Offline-Protocol/offline-protocol-sdk"},{"anchor":"Website","icon":"globe","href":"https://www.offlineprotocol.com"}]},"tabs":[{"tab":"Build","pages":[{"title":"Build","href":""}]},{"tab":"SDK reference","pages":[{"title":"SDK reference","href":"/mesh-sdk/overview"}]},{"tab":"Identity and hosted APIs","groups":[{"group":"OfflineID SDK","pages":[{"title":"OfflineID SDK overview","sidebarTitle":"OfflineID SDK","href":"/id-sdk/overview"},{"title":"OfflineID SDK for React","href":"/id-sdk/setup-react"},{"title":"OfflineID SDK for React Native","href":"/id-sdk/setup-rn"},{"title":"App attestation for native sign-in","sidebarTitle":"App attestation","href":"/id-sdk/app-attestation"},{"title":"OfflineID hooks","href":"/id-sdk/core-modules"},{"title":"React account example","href":"/examples/social-app"},{"title":"Mobile account example","href":"/examples/quickstart-rn"}]},{"group":"API documentation","pages":[{"title":"OfflineID hosted HTTP API","sidebarTitle":"Hosted HTTP API","description":"Offline Protocol hosted HTTP API reference: authenticate a user, identify your application with x-app-id, and handle OfflineID account and profile responses.","href":"/api-reference/introduction"}]},{"group":"Authentication","pages":[{"openapi":"post /auth/send-code","title":"Send email sign-in code","href":"/api-reference/auth/send-auth-code"},{"openapi":"post /auth/verify-code","title":"Verify email sign-in code","description":"Verifies the one-time code sent to the user's email and returns the OfflineID user with a JWT. Send that token as the bearer credential on authenticated endpoints. A native app attaches an attestation built on a new challenge; a token from a sign-in whose attestation verified serves as the application credential on later requests.","href":"/api-reference/auth/verify-code"},{"openapi":"post /auth/users/sessions/revoke","title":"Sign out","href":"/api-reference/auth/sign-out"}]},{"group":"Users","pages":[{"openapi":"get /users/me","title":"Get account details","href":"/api-reference/users/get-account-details"},{"openapi":"post /users/me/credential","title":"Issue signed OfflineID credential","href":"/api-reference/users/credential"},{"openapi":"get /users/credential-issuer-key","title":"Get credential issuer public key","href":"/api-reference/users/credential-issuer-key"},{"openapi":"delete /users/me","title":"Request account deletion code","href":"/api-reference/users/request-deletion"},{"openapi":"post /users/me/delete-code","title":"Confirm account deletion","href":"/api-reference/users/confirm-deletion"}]},{"group":"Profiles","pages":[{"openapi":"post /profiles","title":"Create profile","href":"/api-reference/profiles/create"},{"openapi":"get /profiles/{username}","title":"Get profile","href":"/api-reference/profiles/get"},{"openapi":"get /profiles/search/{username}","title":"Search usernames","href":"/api-reference/profiles/search"},{"openapi":"get /profiles","title":"Get all user profiles","href":"/api-reference/profiles/get-all"},{"openapi":"patch /profiles/{username}/socials","title":"Update social links","href":"/api-reference/profiles/update-socials"},{"openapi":"patch /profiles/{username}/location","title":"Update profile location","href":"/api-reference/profiles/update-location"},{"openapi":"patch /profiles/{username}/visibility","title":"Change username visibility","href":"/api-reference/profiles/change-visibility"},{"openapi":"get /profiles/{username}/availability","title":"Check username availability","href":"/api-reference/profiles/availability"},{"openapi":"get /profiles/{username}/pfp-privacy","title":"Get profile image privacy","href":"/api-reference/profiles/get-pfp-privacy"},{"openapi":"patch /profiles/{username}/pfp-privacy","title":"Set profile image privacy","href":"/api-reference/profiles/set-pfp-privacy"},{"openapi":"post /profiles/{username}/location-commitment","title":"Create a location commitment","href":"/api-reference/profiles/location-commitment"}]},{"group":"Connections","pages":[{"openapi":"post /connections","title":"Add connection","href":"/api-reference/connections/create"},{"openapi":"delete /connections/{username}","title":"Remove connection","href":"/api-reference/connections/delete"},{"openapi":"get /connections/{username}","title":"List connections","href":"/api-reference/connections/get"},{"openapi":"put /connections/by-id/{id}/location-sharing","title":"Set connection location sharing","href":"/api-reference/connections/location-sharing"},{"openapi":"get /connections/{username}/locations","title":"Get locations shared with you","href":"/api-reference/connections/locations"}]},{"group":"Network","pages":[{"openapi":"get /stats/nodes","title":"Get network map","href":"/api-reference/stats/nodes"}]}]},{"tab":"Additional products","pages":[{"title":"Additional products","href":"/proof-of-location/intro"}]}]},"basePath":"","title":"Send email sign-in code - Offline Protocol","buildId":"dpl_3pZeXn3XukjzFRgAX73A7GNDfRJ1","deploymentId":"dpl_3pZeXn3XukjzFRgAX73A7GNDfRJ1","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CW3yP2DK.js","utils-BN0nty2W.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C8_MydSG.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bsl5xDMQ.js","snippetPresets-DYv9OBej.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-9OnYPrVf.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-xr67xWGO.js","shallow-DO1aDdBF.js","getApiPlaygroundDisplay-o7cLzFL-.js","CodeSnippet-CGr2yOA8.js","CodeSnippets-CzBbqPNh.js","Page-CBlOSKZG.js","getPastedJson-dpi9sn5Y.js","icon-aIWHt8Pn.js","MethodPill-Bv2zLsGY.js","DuplicateIcon-DxFSz0J6.js","createIcon-uDNv6jwj.js","DynamicMarkdown-C91yhnNP.js","SectionHeading-DG_xjOLR.js","axios-vUo_bRtp.js","Markdown-B4M_Eo1P.js","clsx-DShopWo_.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BX6wab7q.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-48h67xm_.js"]}