---
title: "Send my approval login"
url: https://hexelstudio.com/docs/api/titan-user/person/send-my-approval-login
---

# Send my approval login

**POST** `/titan/user/approvals/{id}:send-login`

Send the login the caller's phone sealed to the seal request's key (core/pkg/websecret, AAD bound to the approval and origin) with its proof: a compact JWS from one of the caller's trusted phones (past its 24 hour waiting period), header exactly {alg: ES256, kid: the phone's device_id, typ: titan-device-login+jwt}, over {aud: urn:titan:person-devices:<enforcement deployment>, sub: the caller, approval_id, origin, key_id, sealed_sha256, iat, exp}, sealed_sha256 being "sha256:" + hex SHA-256 of the sealed object's RFC 8785 canonical JSON, exp - iat at most 120 s, low-S. Without a proof, 403 DEVICE_SIGNATURE_REQUIRED; one that does not verify for exactly this approval, origin and sealed object (another person's, a waiting or revoked phone, a re-sealed object, a stale proof), 403 DEVICE_SIGNATURE_INVALID, and nothing reaches the browser executor, which checks the binding again (the key id too) and fills one login per request: LOGIN_ALREADY_SENT (409) after it, SEAL_REQUEST_EXPIRED (409) once it ended. state is filled, or refused with the browser executor's code (for example sealed_invalid); TAKEOVER_ACTIVE (409) while the caller has taken over the session's browser (send it again after hand-back); the agent reads the login's result from its execution. NOT_FOUND unless the phone vault is on; SEAL_REQUEST_NOT_FOUND (404) unless the approval is the caller's, approved, unexpired, and its web.login.fill waits for the phone in the browser executor; SECRET_SOURCE_NOT_ALLOWED (403) when the organization's web_login_secret_sources leaves phone out, SERVICE_UNAVAILABLE (503) when that setting can't be read. RATE_LIMITED (429, with Retry-After in seconds) past the route's per-person or per-approval bound per minute (PHONE_VAULT_*_PER_MINUTE), before anything reaches the browser executor. Authorized by the user access token of the person the requesting session acts for (their user-route token); NOT_FOUND unless person approvals is on.

## Path parameters

- `id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. The person's user-route token: a user access token from the deployment's identity provider for an audience only the person routes accept, carrying their use claim. The Gateway verifies it; the edge does not. A session's token is refused here, and a user-route token is refused as a session's. Served only while the deployment turns the person routes on; NOT_FOUND otherwise.

## Body parameters

- `proof: string`

- `sealed: object`

  - `alg: string`

    One of: `"ECDH-P256+HKDF-SHA256+A256GCM"`

  - `ct: string`

  - `epk: string`

  - `v: integer`

    One of: `1`

## Returns

`200` Successful response; exact status varies by operation. (`object`)

- `code: optional string`

- `state: string`

  One of: `"filled"`, `"refused"`

## Errors

- `default` Rejected request.

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/titan/user/approvals/{id}:send-login' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "proof": "string",
  "sealed": {
    "alg": "ECDH-P256+HKDF-SHA256+A256GCM",
    "ct": "string",
    "epk": "string",
    "v": 1
  }
}'
```

### Response (200)

```json
{
  "code": "string",
  "state": "filled"
}
```

### Response (default)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
