---
title: "Create API-key policy profile"
method: POST
path: "/v1/api-keys/{keyId}/policy-profiles"
tags: ["API Keys"]
---

# Create API-key policy profile

`POST /v1/api-keys/{keyId}/policy-profiles`

Creates a draft operation-level control profile for one API key.

## Path parameters

- `keyId` string, required — API key identifier.

## Headers

- `x-project-id` string — Selects the active project for this request. Required for session/dashboard callers. Ignored when authenticating with an API key, whose scope is fixed to the key's project.

## Request body

- object — Create an API-key control profile.
  - `name` string, required — Human-readable name for the API-key control profile.

## Response `201`

API-key control profile created

- object — Standard success response envelope.
  - `data` object, required
    - `profile` object, required — API-key control profile.
      - `id` string, required — API-key control profile ID.
      - `organizationId` string, required — Owning organization ID.
      - `projectId` string, nullable, required — Owning project ID.
      - `apiKeyId` string, required — API key identifier.
      - `name` string, required — Control profile name.
      - `status` 'draft' | 'active' | 'disabled' | 'archived', required — Control profile status.
      - `activeRevisionId` string, nullable, required — Currently active immutable revision ID.
      - `createdBy` string, nullable, required — Profile author ID.
      - `createdAt` string, date-time, required — ISO 8601 timestamp.
      - `updatedAt` string, date-time, required — ISO 8601 timestamp.
      - `activatedAt` string, date-time, nullable, required — ISO 8601 timestamp.
      - `archivedAt` string, date-time, nullable, required — ISO 8601 timestamp.
  - `meta` object, required — Response metadata.
    - `requestId` string, required — Request identifier for tracing.
    - `timestamp` string, date-time, required — ISO 8601 timestamp.

## Other responses

- `400` — Error
- `401` — Error
- `403` — Error
- `404` — Error
- `500` — Error

---

[API](https://skmtc.net/solana/apis/solana-developer-platform-api.md) · [All operations](https://skmtc.net/solana/apis/solana-developer-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solana/solana-developer-platform-api/revisions/672b1916ba61/schema)
