---
title: "Create Access Key"
method: POST
path: "/access-keys"
tags: ["Access Key"]
---

# Create Access Key

`POST /access-keys`

Create an Access Token with the permission of user or with only 'Add Agent' permission

## Request body

- object
  - `isAgentInstallKey` boolean
  - `daysUntilExpiration` '30' | '90' | '180' | '360' | 'Unlimited'

## Response `200`

- object[]
  - `AccessKeyId` string
  - `Status` integer
  - `Visible` boolean
  - `CreatedOn` string
  - `LastUsedOn` string
  - `DeletedOn` string
  - `isAgentInstallKey` boolean
  - `ExpirationDate` string
  - `AccessKeySecret` string

---

[API](https://skmtc.net/liongard/apis/liongard-v2-endpoints.md) · [All operations](https://skmtc.net/liongard/apis/liongard-v2-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/liongard/liongard-v2-endpoints/versions/4ba1aeff82d7/schema)
