---
title: "POST /agentcc/api-keys/sync/"
method: POST
path: "/agentcc/api-keys/sync/"
tags: ["agentcc"]
---

# POST /agentcc/api-keys/sync/

`POST /agentcc/api-keys/sync/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/agentcc/api-keys/sync/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- AgentccAPIKey
  - `id` string, uuid
  - `project` string, uuid, nullable
  - `user` string, uuid, nullable
  - `gateway_key_id` string
  - `key_prefix` string
  - `name` string, required
  - `owner` string
  - `status` 'active' | 'revoked' | 'expired'
  - `allowed_models` object
  - `allowed_providers` object
  - `metadata` object
  - `last_used_at` string, date-time, nullable
  - `expires_at` string, date-time, nullable
  - `organization` string, uuid
  - `workspace` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `201`

Created

- AgentccAPIKey
  - `id` string, uuid
  - `project` string, uuid, nullable
  - `user` string, uuid, nullable
  - `gateway_key_id` string
  - `key_prefix` string
  - `name` string, required
  - `owner` string
  - `status` 'active' | 'revoked' | 'expired'
  - `allowed_models` object
  - `allowed_providers` object
  - `metadata` object
  - `last_used_at` string, date-time, nullable
  - `expires_at` string, date-time, nullable
  - `organization` string, uuid
  - `workspace` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
