WorkOS · Schema

MagicAuth

AuthenticationIdentity ProviderSSOSAMLOpenID ConnectSCIMDirectory SyncAuthorizationFGAAudit LogsMFAB2B SaaSAgentsMCPIdentity Federation

Properties

Name Type Description
object string Distinguishes the Magic Auth object.
id string The unique ID of the Magic Auth code.
user_id string The unique ID of the user.
email string The email address of the user.
expires_at string The timestamp when the Magic Auth code expires.
created_at string An ISO 8601 timestamp.
updated_at string An ISO 8601 timestamp.
code string The code used to verify the Magic Auth code.
View JSON Schema on GitHub

JSON Schema

workos-magicauth-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MagicAuth",
  "title": "MagicAuth",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "description": "Distinguishes the Magic Auth object.",
      "const": "magic_auth"
    },
    "id": {
      "type": "string",
      "description": "The unique ID of the Magic Auth code.",
      "example": "magic_auth_01HWZBQZY2M3AMQW166Q22K88F"
    },
    "user_id": {
      "type": "string",
      "description": "The unique ID of the user.",
      "example": "user_01E4ZCR3C56J083X43JQXF3JK5"
    },
    "email": {
      "type": "string",
      "description": "The email address of the user.",
      "example": "marcelina.davis@example.com"
    },
    "expires_at": {
      "format": "date-time",
      "type": "string",
      "description": "The timestamp when the Magic Auth code expires.",
      "example": "2026-01-15T12:00:00.000Z"
    },
    "created_at": {
      "format": "date-time",
      "type": "string",
      "description": "An ISO 8601 timestamp.",
      "example": "2026-01-15T12:00:00.000Z"
    },
    "updated_at": {
      "format": "date-time",
      "type": "string",
      "description": "An ISO 8601 timestamp.",
      "example": "2026-01-15T12:00:00.000Z"
    },
    "code": {
      "type": "string",
      "description": "The code used to verify the Magic Auth code.",
      "example": "123456"
    }
  },
  "required": [
    "object",
    "id",
    "user_id",
    "email",
    "expires_at",
    "created_at",
    "updated_at",
    "code"
  ]
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/workos-magicauth"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.