# API Keys

Endpoints for managing API keys

## Get Api Keys

> Get all API keys for the authenticated creator.\
> \
> This endpoint returns all API keys created by the authenticated creator.\
> Note that the actual API key values are not included in the response for security reasons.

OpenAPI:

```json
{"openapi":"3.1.0","info":{"title":"Walver API","version":"1.1.42"},"tags":[{"name":"API Keys","description":"Endpoints for managing API keys"}],"security":[{"APIKeyHeader":[]}],"components":{"securitySchemes":{"APIKeyHeader":{"type":"apiKey","description":"API key for authentication. Can be obtained from the creator dashboard.","in":"header","name":"X-API-Key"}}},"paths":{"/creator/api-keys":{"get":{"tags":["API Keys"],"summary":"Get Api Keys","description":"Get all API keys for the authenticated creator.\n\nThis endpoint returns all API keys created by the authenticated creator.\nNote that the actual API key values are not included in the response for security reasons.","operationId":"get_api_keys_creator_api_keys_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","title":"Created At"},"creator":{"type":"string","title":"Creator"}},"type":"object","required":["key","name","created_at","creator"],"title":"ApiKeyResponse"},"title":"Response Get Api Keys Creator Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}}}}
```

## Create Api Key

> Create a new API key for the authenticated creator.\
> \
> This endpoint allows creators to create API keys for programmatic access to the API.\
> The API key is only shown once upon creation, so make sure to save it securely.\
> \
> \- \*\*name\*\*: A name for the API key\
> \- \*\*description\*\*: A description for the API key

OpenAPI:

```json
{"openapi":"3.1.0","info":{"title":"Walver API","version":"1.1.42"},"tags":[{"name":"API Keys","description":"Endpoints for managing API keys"}],"security":[{"APIKeyHeader":[]}],"components":{"securitySchemes":{"APIKeyHeader":{"type":"apiKey","description":"API key for authentication. Can be obtained from the creator dashboard.","in":"header","name":"X-API-Key"}}},"paths":{"/creator/api-keys":{"post":{"tags":["API Keys"],"summary":"Create Api Key","description":"Create a new API key for the authenticated creator.\n\nThis endpoint allows creators to create API keys for programmatic access to the API.\nThe API key is only shown once upon creation, so make sure to save it securely.\n\n- **name**: A name for the API key\n- **description**: A description for the API key","operationId":"create_api_key_creator_api_keys_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"ApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","title":"Created At"},"creator":{"type":"string","title":"Creator"}},"type":"object","required":["key","name","created_at","creator"],"title":"ApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}}}}
```

## Delete Api Key

> Delete an API key.\
> \
> This endpoint allows creators to delete an API key that they no longer need.\
> \
> \- \*\*api\_key\_id\*\*: The ID of the API key to delete

OpenAPI:

```json
{"openapi":"3.1.0","info":{"title":"Walver API","version":"1.1.42"},"tags":[{"name":"API Keys","description":"Endpoints for managing API keys"}],"security":[{"APIKeyHeader":[]}],"components":{"securitySchemes":{"APIKeyHeader":{"type":"apiKey","description":"API key for authentication. Can be obtained from the creator dashboard.","in":"header","name":"X-API-Key"}}},"paths":{"/creator/api-keys/{api_key_id}":{"delete":{"tags":["API Keys"],"summary":"Delete Api Key","description":"Delete an API key.\n\nThis endpoint allows creators to delete an API key that they no longer need.\n\n- **api_key_id**: The ID of the API key to delete","operationId":"delete_api_key_creator_api_keys__api_key_id__delete","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}}}}
```
