---
title: "Request an Id-token to be used for machine-to-machine communication"
method: GET
path: "/api/Users/GenerateApiToken"
tags: ["Users"]
---

# Request an Id-token to be used for machine-to-machine communication

`GET /api/Users/GenerateApiToken`

## 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/Users/GenerateApiToken`
- Auth: HTTP bearer

## Query parameters

- `secret` string

## Response `200`

A token with a lifetime of one hour is returned.

- ApiTokenResult
  - `token` string, nullable

## Other responses

- `400`: Problems with the request. Invalid request
- `404`: No secret found

---

[API](https://skmtc.dev/globalfinreg/apis/gfr-ai-agents-api.md) · [All operations](https://skmtc.dev/globalfinreg/apis/gfr-ai-agents-api/llms.txt) · [OpenAPI document](https://skmtc.dev/globalfinreg/apis/gfr-ai-agents-api/revisions/f8afe0178e1b?raw)
