Reason Machines · Schema
ProviderOAuthLoginResponse
Artificial IntelligenceAutomationPlatformSoftware-as-a-ServiceMachine LearningCompany
Properties
| Name | Type | Description |
|---|---|---|
| login | object | The sign-in's current state. Never contains provider tokens. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/reasonmachines-com/json-schema/reasonmachines-com-provider-oauth-login-response-schema.json",
"title": "ProviderOAuthLoginResponse",
"x-generated": "2026-11-23",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/reasonmachines-com-openapi.json#/components/schemas/ProviderOAuthLoginResponse",
"type": "object",
"properties": {
"login": {
"type": "object",
"properties": {
"login_id": {
"type": "string",
"description": "Sign-in id; pass it as `loginId` to read, answer or cancel it."
},
"provider_id": {
"type": "string",
"description": "Provider the sign-in connects."
},
"method": {
"type": "string",
"enum": [
"interactive",
"browser",
"device_code"
],
"description": "Sign-in method in use."
},
"account_key": {
"type": "string",
"description": "Provider account the sign-in connects or reconnects, once known."
},
"failure_code": {
"type": "string",
"description": "Machine-readable failure. An uncertain token exchange requires a fresh login rather than replaying the exchange."
},
"status": {
"type": "string",
"enum": [
"pending",
"succeeded",
"failed",
"cancelled"
],
"description": "pending until the sign-in finishes; succeeded means the account is connected."
},
"expires_at": {
"type": "string",
"format": "date-time",
"description": "Deadline for completing this login."
},
"error": {
"description": "Why the sign-in failed, or null.",
"type": [
"string",
"null"
]
},
"events": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "info",
"description": "A message from the provider."
},
"message": {
"type": "string",
"description": "Text to show the person."
},
"links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Link target."
},
"label": {
"type": "string",
"description": "Link text."
}
},
"required": [
"url"
]
},
"description": "Links that go with the message."
}
},
"required": [
"type",
"message"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "auth_url",
"description": "The provider issued an authorization URL."
},
"url": {
"type": "string",
"description": "URL the person opens to sign in."
},
"instructions": {
"type": "string",
"description": "What to do on that page."
}
},
"required": [
"type",
"url"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "device_code",
"description": "The provider issued a device code."
},
"user_code": {
"type": "string",
"description": "Code the person enters at `verification_uri`."
},
"verification_uri": {
"type": "string",
"description": "Page where the code is entered."
},
"interval_seconds": {
"type": "number",
"description": "Seconds between the provider's polls."
},
"expires_in_seconds": {
"type": "number",
"description": "Seconds until the code expires."
}
},
"required": [
"type",
"user_code",
"verification_uri"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "progress",
"description": "A progress update."
},
"message": {
"type": "string",
"description": "Text to show the person."
}
},
"required": [
"type",
"message"
]
}
]
},
"description": "What the provider has reported so far, oldest first: info messages, an authorization URL, a device code, progress."
},
"prompt": {
"description": "A question the sign-in is waiting on.",
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "integer",
"exclusiveMinimum": 0,
"description": "Prompt id to send as `prompt_id` to `respondToProviderOAuthLogin`."
},
"type": {
"type": "string",
"enum": [
"text",
"secret",
"select",
"manual_code"
],
"description": "Kind of answer: free text, a secret, one of `options`, or a code or callback URL copied from the browser."
},
"message": {
"type": "string",
"description": "Question to put to the person."
},
"placeholder": {
"type": "string",
"description": "Example answer."
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Value to send as the answer."
},
"label": {
"type": "string",
"description": "Display text."
},
"description": {
"type": "string",
"description": "More about the choice."
}
},
"required": [
"id",
"label"
]
},
"description": "Choices for a select prompt; answer with an option's id."
}
},
"required": [
"id",
"type",
"message"
]
},
"next_action": {
"description": "What to do next, by `type`: prompt (answer it), authorize (open url), device_code (enter user_code at verification_uri), wait (poll after poll_after_seconds), or complete, failed, cancelled.",
"oneOf": [
{
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "Extra guidance for this step."
},
"fallback": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"const": "device_code_may_be_disabled"
},
"instructions": {
"type": "string",
"description": "What to tell the person when device-code sign-in is unavailable to them."
},
"restart": {
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"const": "startProviderOAuthLogin",
"description": "Operation that starts the browser login."
},
"provider_id": {
"type": "string",
"const": "openai-codex",
"description": "Provider to pass as `providerId`."
},
"body": {
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "browser",
"description": "Sign-in method to request."
},
"account_key": {
"type": "string",
"description": "Account to reconnect, kept from the original sign-in."
}
},
"required": [
"method"
],
"description": "Request body for that call: method browser, keeping the reconnect `account_key`."
}
},
"required": [
"operation_id",
"provider_id",
"body"
],
"description": "The call that starts a fresh browser login instead."
}
},
"required": [
"reason",
"instructions",
"restart"
],
"description": "User-directed fresh browser login when device-code sign-in is unavailable. The server cannot detect the user's device-code security setting. Never change security settings or switch methods automatically. Preserve the reconnect account_key."
},
"type": {
"type": "string",
"const": "prompt",
"description": "Answer `prompt` with `respondToProviderOAuthLogin`."
},
"prompt": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"exclusiveMinimum": 0,
"description": "Prompt id to send as `prompt_id` to `respondToProviderOAuthLogin`."
},
"type": {
"type": "string",
"enum": [
"text",
"secret",
"select",
"manual_code"
],
"description": "Kind of answer: free text, a secret, one of `options`, or a code or callback URL copied from the browser."
},
"message": {
"type": "string",
"description": "Question to put to the person."
},
"placeholder": {
"type": "string",
"description": "Example answer."
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Value to send as the answer."
},
"label": {
"type": "string",
"description": "Display text."
},
"description": {
"type": "string",
"description": "More about the choice."
}
},
"required": [
"id",
"label"
]
},
"description": "Choices for a select prompt; answer with an option's id."
}
},
"required": [
"id",
"type",
"message"
],
"description": "A question the sign-in is waiting on."
},
"authorization_url": {
"type": "string",
"description": "URL to open first when the prompt asks for what the browser shows afterwards."
}
},
"required": [
"type",
"prompt"
]
},
{
"type": "object",
"properties": {
"instructions": {
"allOf": [
{
"type": "string",
"description": "Extra guidance for this step."
},
{
"type": "string",
"description": "What to do on that page."
}
]
},
"fallback": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"const": "device_code_may_be_disabled"
},
"instructions": {
"type": "string",
"description": "What to tell the person when device-code sign-in is unavailable to them."
},
"restart": {
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"const": "startProviderOAuthLogin",
"description": "Operation that starts the browser login."
},
"provider_id": {
"type": "string",
"const": "openai-codex",
"description": "Provider to pass as `providerId`."
},
"body": {
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "browser",
"description": "Sign-in method to request."
},
"account_key": {
"type": "string",
"description": "Account to reconnect, kept from the original sign-in."
}
},
"required": [
"method"
],
"description": "Request body for that call: method browser, keeping the reconnect `account_key`."
}
},
"required": [
"operation_id",
"provider_id",
"body"
],
"description": "The call that starts a fresh browser login instead."
}
},
"required": [
"reason",
"instructions",
"restart"
],
"description": "User-directed fresh browser login when device-code sign-in is unavailable. The server cannot detect the user's device-code security setting. Never change security settings or switch methods automatically. Preserve the reconnect account_key."
},
"type": {
"type": "string",
"const": "authorize",
"description": "Have the person open `url` and sign in."
},
"url": {
"type": "string",
"description": "Authorization URL."
}
},
"required": [
"type",
"url"
]
},
{
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "Extra guidance for this step."
},
"fallback": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"const": "device_code_may_be_disabled"
},
"instructions": {
"type": "string",
"description": "What to tell the person when device-code sign-in is unavailable to them."
},
"restart": {
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"const": "startProviderOAuthLogin",
"description": "Operation that starts the browser login."
},
"provider_id": {
"type": "string",
"const": "openai-codex",
"description": "Provider to pass as `providerId`."
},
"body": {
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "browser",
"description": "Sign-in method to request."
},
"account_key": {
"type": "string",
"description": "Account to reconnect, kept from the original sign-in."
}
},
"required": [
"method"
],
"description": "Request body for that call: method browser, keeping the reconnect `account_key`."
}
},
"required": [
"operation_id",
"provider_id",
"body"
],
"description": "The call that starts a fresh browser login instead."
}
},
"required": [
"reason",
"instructions",
"restart"
],
"description": "User-directed fresh browser login when device-code sign-in is unavailable. The server cannot detect the user's device-code security setting. Never change security settings or switch methods automatically. Preserve the reconnect account_key."
},
"type": {
"type": "string",
"const": "device_code",
"description": "Have the person enter `user_code` at `verification_uri`."
},
"user_code": {
"type": "string",
"description": "Code to enter."
},
"verification_uri": {
"type": "string",
"description": "Page where the code is entered."
},
"poll_after_seconds": {
"type": "number",
"description": "Seconds to wait before reading the sign-in again."
}
},
"required": [
"type",
"user_code",
"verification_uri",
"poll_after_seconds"
]
},
{
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "Extra guidance for this step."
},
"fallback": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"const": "device_code_may_be_disabled"
},
"instructions": {
"type": "string",
"description": "What to tell the person when device-code sign-in is unavailable to them."
},
"restart": {
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"const": "startProviderOAuthLogin",
"description": "Operation that starts the browser login."
},
"provider_id": {
"type": "string",
"const": "openai-codex",
"description": "Provider to pass as `providerId`."
},
"body": {
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "browser",
"description": "Sign-in method to request."
},
"account_key": {
"type": "string",
"description": "Account to reconnect, kept from the original sign-in."
}
},
"required": [
"method"
],
"description": "Request body for that call: method browser, keeping the reconnect `account_key`."
}
},
"required": [
"operation_id",
"provider_id",
"body"
],
"description": "The call that starts a fresh browser login instead."
}
},
"required": [
"reason",
"instructions",
"restart"
],
"description": "User-directed fresh browser login when device-code sign-in is unavailable. The server cannot detect the user's device-code security setting. Never change security settings or switch methods automatically. Preserve the reconnect account_key."
},
"type": {
"type": "string",
"const": "wait",
"description": "Nothing to do yet; read the sign-in again later."
},
"poll_after_seconds": {
"type": "number",
"description": "Seconds to wait before reading the sign-in again."
}
},
"required": [
"type",
"poll_after_seconds"
]
},
{
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "Extra guidance for this step."
},
"fallback": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"const": "device_code_may_be_disabled"
},
"instructions": {
"type": "string",
"description": "What to tell the person when device-code sign-in is unavailable to them."
},
"restart": {
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"const": "startProviderOAuthLogin",
"description": "Operation that starts the browser login."
},
"provider_id": {
"type": "string",
"const": "openai-codex",
"description": "Provider to pass as `providerId`."
},
"body": {
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "browser",
"description": "Sign-in method to request."
},
"account_key": {
"type": "string",
"description": "Account to reconnect, kept from the original sign-in."
}
},
"required": [
"method"
],
"description": "Request body for that call: method browser, keeping the reconnect `account_key`."
}
},
"required": [
"operation_id",
"provider_id",
"body"
],
"description": "The call that starts a fresh browser login instead."
}
},
"required": [
"reason",
"instructions",
"restart"
],
"description": "User-directed fresh browser login when device-code sign-in is unavailable. The server cannot detect the user's device-code security setting. Never change security settings or switch methods automatically. Preserve the reconnect account_key."
},
"type": {
"type": "string",
"const": "complete",
"description": "The account is connected."
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "Extra guidance for this step."
},
"fallback": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"const": "device_code_may_be_disabled"
},
"instructions": {
"type": "string",
"description": "What to tell the person when device-code sign-in is unavailable to them."
},
"restart": {
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"const": "startProviderOAuthLogin",
"description": "Operation that starts the browser login."
},
"provider_id": {
"type": "string",
"const": "openai-codex",
"description": "Provider to pass as `providerId`."
},
"body": {
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "browser",
"description": "Sign-in method to request."
},
"account_key": {
"type": "string",
"description": "Account to reconnect, kept from the original sign-in."
}
},
"required": [
"method"
],
"description": "Request body for that call: method browser, keeping the reconnect `account_key`."
}
},
"required": [
"operation_id",
"provider_id",
"body"
],
"description": "The call that starts a fresh browser login instead."
}
},
"required": [
"reason",
"instructions",
"restart"
],
"description": "User-directed fresh browser login when device-code sign-in is unavailable. The server cannot detect the user's device-code security setting. Never change security settings or switch methods automatically. Preserve the reconnect account_key."
},
"type": {
"type": "string",
"const": "failed",
"description": "The sign-in failed."
},
"message": {
"type": "string",
"description": "Why it failed."
}
},
"required": [
"type",
"message"
]
},
{
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "Extra guidance for this step."
},
"fallback": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"const": "device_code_may_be_disabled"
},
"instructions": {
"type": "string",
"description": "What to tell the person when device-code sign-in is unavailable to them."
},
"restart": {
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"const": "startProviderOAuthLogin",
"description": "Operation that starts the browser login."
},
"provider_id":
# --- truncated at 32 KB (34 KB total) ---
# Full source: https://artifacts.apis.io/reasonmachines-com/json-schema/reasonmachines-com-provider-oauth-login-response-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/reasonmachines-com-provider-oauth-login-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.