---
title: "Generate GFA API Key"
method: POST
path: "/gfa/api_keys"
tags: ["Global File Accelerator (GFA)"]
---

# Generate GFA API Key

`POST /gfa/api_keys`

## Request

- Base URL: `https://am1.portal.api.nasuni.com`
- URL: `https://am1.portal.api.nasuni.com/gfa/api_keys`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nasuni/apis/portal-api/docs/gfa/api_keys/post.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

GFA API key generated successfully

- GfaApiKeyDto
  - `key` string, uuid, required
  - `created` string, date-time, required
  - `last_used` string, date-time, nullable, required

## Other responses

- `401`: Not authenticated
- `403`: Insufficient permissions or license
- `422`: Invalid input data
- `500`: Internal server error

---

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