---
title: "Create Partner Code"
method: POST
path: "/admin/partners/codes"
tags: ["internal", "Admin - Partners"]
---

# Create Partner Code

`POST /admin/partners/codes`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/admin/partners/codes`
- Auth: none declared

Create a partner code. Fails if the code already exists (reactivate
or pick another instead of silently overwriting an arrangement).

## Request body

- PartnerCodeCreate
  - `code` string, required: The signup-link code (normalized to lowercase)
  - `name` string, required: Who the arrangement is with
  - `api_requests_per_minute` integer, nullable: Per-minute override for referred orgs (paid tiers only)
  - `api_requests_per_month` integer, nullable: Monthly override for referred orgs (paid tiers only)
  - `note` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
