> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "Create API key"
description: "Creates a new `holo_xxx` API key scoped to a project. The full key is returned only in this response; it is never stored in plain text."
api: "POST /api/v0/keys"
gridGap: 30
---

<Aside full>

<RequestExample>

```bash
curl -X POST "https://api.example.com/api/v0/keys" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "projectId": "string"
}'
```

</RequestExample>

</Aside>

<OpenAPIEndpoint {...{"method":"post","path":"/api/v0/keys","summary":"Create API key","description":"Creates a new `holo_xxx` API key scoped to a project. The full key is returned only in this response; it is never stored in plain text.","parameters":[],"requestBody":{"required":true,"contentType":"application/json","schema":{"type":"object","required":["name","projectId"],"properties":{"name":{"type":"string","minLength":1},"projectId":{"type":"string","description":"Project ULID the key is scoped to.","minLength":1}}}},"responses":[{"status":"200","description":"","schema":{"type":"object","required":["id","name","prefix","key"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"key":{"type":"string","description":"Full `holo_xxx` key. Shown only once at creation."}}}},{"status":"default","description":""}],"security":[],"servers":[]}} />

---

*Powered by [holocron.so](https://holocron.so)*
