---
title: "Approves the request when userCode matches the code the agent shows."
method: POST
path: "/api/AgentIdentity/Approve"
tags: ["AgentIdentity"]
---

# Approves the request when userCode matches the code the agent shows.

`POST /api/AgentIdentity/Approve`

## Request

- Base URL: `https://api2.globalfinreg.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api2.globalfinreg.com/api/AgentIdentity/Approve`
- Auth: API key in header `Authorization`

## Headers

- `x-imp-userid` string

## Request body

- AttemptRequest
  - `attempt` string, nullable
  - `userCode` string, nullable

## Response `200`

Approved; the agent receives its credential on its next poll.

## Other responses

- `400`: Wrong code (with remainingTries), locked or expired.
- `404`: Unknown attempt, or it belongs to another user.
- `409`: Already approved, denied or completed.

---

[API](https://skmtc.dev/globalfinreg/apis/registration-agents-api-documentation.md) · [All operations](https://skmtc.dev/globalfinreg/apis/registration-agents-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/globalfinreg/apis/registration-agents-api-documentation/revisions/97e306fd0c82?raw)
