Files
prowler/docs/api-reference/lighthouse/providers-create.mdx
2025-10-30 18:58:05 +01:00

41 lines
778 B
Plaintext

---
title: "Create LLM Provider Config"
api: "POST /api/v1/lighthouse/providers"
description: "Create configuration for an LLM provider."
---
Configure an LLM provider for use with Lighthouse AI.
## Request Body
```json
{
"data": {
"type": "lighthouse-providers",
"attributes": {
"provider_type": "openai",
"base_url": "https://api.openai.com/v1",
"credentials": {
"api_key": "sk-..."
}
}
}
}
```
## Example Request
```bash
curl -X POST "https://api.prowler.com/api/v1/lighthouse/providers" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/vnd.api+json"
```
## Response
Returns the created provider configuration.
<Note>
Only one configuration per provider type is allowed per tenant.
</Note>