---
agentTools:
  projectIndex: https://docs.privakey.com/llms.txt
---

# Validate Magic Link Token

Validates a token from a magic link

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "2.4"
  },
  "servers": [
    {
      "url": "https://cloud.privakey.com"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/api/request/validateToken": {
      "post": {
        "summary": "Validate Magic Link Token",
        "description": "Validates a token from a magic link",
        "operationId": "validate-magic-link-token",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "Either Basic or HMAC, depending on how the Request Origin is configured.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Basic <basic creds>"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "token"
                ],
                "properties": {
                  "token": {
                    "type": "string",
                    "description": "The token from a magic link"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Created": {
                    "value": "{\n    \"requestGuid\": \"b7e58467-ed9a-4c54-81dd-17179b09b283\",\n    \"message\": \"Token is valid!\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "requestGuid": {
                      "type": "string",
                      "example": "b7e58467-ed9a-4c54-81dd-17179b09b283"
                    },
                    "message": {
                      "type": "string",
                      "example": "Token is valid!"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [],
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --location --request POST \"https://cloud.privakey.com/api/request/validateToken\" --header \"Authorization: Basic <basic creds>\" --header \"Content-Type: application/x-www-form-urlencoded\" --data \"token=28668b5d-3e55-46ca-9a11-221f529d5436\""
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "660d684fcb33080067214619:660d684fcb33080067214664"
}
```