# Confirm Sign In

Exchange the emailed code for a scoped API key, for a client without OAuth. Scopes are read, hearts, and suggest. The key is shown once. A client already signed in with OAuth gets a short note and no key. [no key]

No account. Read tools ignore an invalid bearer token.

Anonymous reads are 60 per minute per IP. A signed-in MCP call is 120 per minute per account.

Annotations: `{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}`.

The access token in the example is `aw_example`. A real call returns a new opaque key once. This page does not contain a working key.

## Input Schema

```json
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "email": {
      "type": "string",
      "minLength": 3,
      "maxLength": 200
    },
    "otp": {
      "type": "string",
      "minLength": 4,
      "maxLength": 12
    },
    "scopes": {
      "type": "array",
      "maxItems": 3,
      "items": {
        "type": "string",
        "enum": [
          "read",
          "hearts",
          "suggest"
        ]
      }
    }
  },
  "required": [
    "email",
    "otp"
  ]
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string"
    },
    "token_type": {
      "type": "string"
    },
    "scopes": {
      "type": "array"
    },
    "key_created": {
      "type": "boolean"
    },
    "signed_in": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    }
  },
  "required": []
}
```

## Example Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "confirm_sign_in",
    "arguments": {
      "email": "reader@example.com",
      "otp": "000000"
    }
  }
}
```

## Example Result

The `content` text is the plain-language form of `structuredContent`. Fields the schema marks required are always present. A live result may include more fields.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"access_token\":\"aw_example\",\"token_type\":\"bearer\",\"scopes\":[\"read\",\"hearts\",\"suggest\"],\"key_created\":true,\"signed_in\":true,\"message\":\"Example only. A real key is shown once and is not this value.\"}"
      }
    ],
    "structuredContent": {
      "access_token": "aw_example",
      "token_type": "bearer",
      "scopes": [
        "read",
        "hearts",
        "suggest"
      ],
      "key_created": true,
      "signed_in": true,
      "message": "Example only. A real key is shown once and is not this value."
    }
  }
}
```

Back to the [tool index](/developers).