---
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

- The document declares no server URL.
- Auth: none declared

## 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

## Changes

- **2025-05-20** `8ae1e6c69121`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tesseral-labs/apis/frontendservice-api/changes/frontend/v1/api-key-role-assignments/post.md)

---

[API](https://skmtc.dev/tesseral-labs/apis/frontendservice-api.md) - [All operations](https://skmtc.dev/tesseral-labs/apis/frontendservice-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tesseral-labs/apis/frontendservice-api/revisions/e98ae37067b1?raw)
