---
title: "Create a new api key"
method: POST
path: "/apikey"
tags: ["Authentication"]
---

# Create a new api key

`POST /apikey`

## Request

- Base URL: `https://api.app.subskribe.com`
- URL: `https://api.app.subskribe.com/apikey`
- Auth: API key in header `X-API-Key`

Create a new api key with the specified parameters. The new key is returned

## Query parameters

- `role` 'ADMIN' | 'FINANCE' | 'SALES' | 'DEAL_DESK' | 'BILLING_CLERK' | 'REVENUE_CLERK' | 'READ_ONLY' | 'EXECUTIVE' | 'CRM' | 'IMPORT'
- `expiry` integer
- `userId` string
- `entityId` string

## Response `200`

successful operation

- string

---

[API](https://skmtc.dev/dealhub/apis/subskribe-api.md) - [All operations](https://skmtc.dev/dealhub/apis/subskribe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dealhub/apis/subskribe-api/revisions/c1ee531b82ce?raw)
