---
title: "Avvia il device flow (P21)"
method: POST
path: "/api/agent/authorize"
---

# Avvia il device flow (P21)

`POST /api/agent/authorize`

## Request

- Base URL: `https://imgauth.spaziogenesi.org`
- URL: `https://imgauth.spaziogenesi.org/api/agent/authorize`
- Auth: none declared

Nessuna autenticazione richiesta. Crea una richiesta di autorizzazione a breve scadenza.

## Response `200`

Codice generato

- object
  - `code` string
  - `verification_url` string
  - `expires_in` integer
  - `interval` integer

## Other responses

- `429`: Rate limit per-IP (60/60s)

---

[API](https://skmtc.dev/spaziogenesi/apis/imgauth-api-di-attestazione-opere-digitali.md) - [All operations](https://skmtc.dev/spaziogenesi/apis/imgauth-api-di-attestazione-opere-digitali/llms.txt) - [OpenAPI document](https://skmtc.dev/spaziogenesi/apis/imgauth-api-di-attestazione-opere-digitali/revisions/44ef92788155?raw)
