---
title: "Poll a CLI login pairing for the minted key"
method: POST
path: "/cli-auth/poll"
tags: ["Auth"]
---

# Poll a CLI login pairing for the minted key

`POST /cli-auth/poll`

## Request

- Base URL: `https://api.madethis.com/v1`
- URL: `https://api.madethis.com/v1/cli-auth/poll`
- Auth: none required

## Request body

- object
  - `code` string, required
  - `client_secret` string, required

## Response `200`

Success envelope.

- object
  - `data` object, required
    - `status` 'approved' | 'pending' | 'denied', required
    - `api_key` string
    - `business_id` string
    - `business_name` string
    - `business_slug` string
    - `audience` 'control' | 'primitives' | 'both' | 'workspace'
    - `preset` string
  - `hint` string: One-sentence orientation for agents.
  - `next_action` string: The literal next call an agent would chain.

## Other responses

- `default`: Error envelope — machine-readable `code` plus a docs link.

---

[API](https://skmtc.dev/madethis/apis/madethis-api.md) - [All operations](https://skmtc.dev/madethis/apis/madethis-api/llms.txt) - [OpenAPI document](https://skmtc.dev/madethis/apis/madethis-api/revisions/b0696ebcb55b?raw)
