---
search:
  tags:
    - agent-logins
    - POST
seo:
  description: >-
    Answers with the new API key once the person approved, this once. Until then
    it… Reference for the POST /v1/agent-logins/token endpoint in the pols.so
    API.
sidebar:
  label: Get the API key of an approved agent login (no API key needed)
  badge: POST
title: Get the API key of an approved agent login (no API key needed)
type: openapi-operation
---
Answers with the new API key once the person approved, this once.
Until then it fails with the error code saying what to do:
`authorization_pending` (400, poll again after `interval`
seconds), `slow_down` (400, polled sooner than the interval: it
grows by 5 seconds, and `Retry-After` has the new one),
`expired_token` (400, the request expired, was used or is unknown:
start again), `access_denied` (403, the person denied it or the
account may not log in), `approval_pending` (403, the person
approved and the new account waits for pols.so's approval; poll on
until it expires, and after that start again once the approval
email has arrived) or `quota_exceeded` (403, the org has as many
API keys as it may; poll again once one is revoked).

`POST /v1/agent-logins/token`
