---
search:
  tags:
    - agent-logins
    - POST
seo:
  description: >-
    Starts an agent login for email: pols emails the address a link to approve
    the request,… Reference for the POST /v1/agent-logins endpoint in the
    pols.so API.
sidebar:
  label: Ask the person at an email address for an API key (no API key needed)
  badge: POST
title: Ask the person at an email address for an API key (no API key needed)
type: openapi-operation
---
Starts an agent login for `email`: pols emails the address a link
to approve the request, with `user_code`, which the agent shows to
the person too, so they can tell it is theirs. For an address
without an account, approving creates one (the person accepts the
terms and the trial starts); otherwise approving needs no more than
the emailed link, which logs them in. The answer is the same
whether or not the address has an account. Then poll
`POST /v1/agent-logins/token` with `device_code`. A request expires
after `expires_in` seconds (15 minutes). Addresses at disposable
email services are refused (400 `bad_request`). Each client
address may start 20 logins an hour, shared with the website's
login links, and each email address 5 (429 `rate_limited`).

`POST /v1/agent-logins`
