# Create a test trusted token (/api/auths/create-trusted-auth)

`POST https://api.comecero.com/api/v1/auths/trusted`

Swaps a live trusted token for a test trusted token with the same user and permissions. Use it when a signed-in user switches the dashboard or your own tool to test mode. You cannot ask for any other kind of trusted token. Trusted tokens are given to users when they sign in, not created through the API. Send `test=true` in the query string (`400` without it) and no request body (`403` with one). The token you call with must be a live trusted token (`403` otherwise). The new token lasts two hours from its last use.

## Parameters

- `test` (query, required): Must be `true`.
- `browser_info` (query): When `true`, the response also has `browser_info`.

Responses: 201, 400, 401, 403, 500.

Full schemas: operation `create_trusted_auth` in /openapi.json.