---
title: "Create API Key Role Assignment"
method: POST
path: "/frontend/v1/api-key-role-assignments"
tags: ["FrontendService"]
---

# Create API Key Role Assignment

`POST /frontend/v1/api-key-role-assignments`

## Request body

- CreateAPIKeyRoleAssignmentRequest
  - `apiKeyRoleAssignment` APIKeyRoleAssignment
    - `id` string — The API Key Role Assignment ID. Starts with `api_key_role_assignment_...`.
    - `apiKeyId` string — The API Key ID.
    - `roleId` string — The Role

## Response `200`

OK

- CreateAPIKeyRoleAssignmentResponse
  - `apiKeyRoleAssignment` APIKeyRoleAssignment
    - `id` string — The API Key Role Assignment ID. Starts with `api_key_role_assignment_...`.
    - `apiKeyId` string — The API Key ID.
    - `roleId` string — The Role

## Other responses

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

---

[API](https://skmtc.net/tesseral-labs/apis/frontendservice-api.md) · [All operations](https://skmtc.net/tesseral-labs/apis/frontendservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tesseral-labs/frontendservice-api/versions/e98ae37067b1/schema)
