AI Providers
Create an AI provider
Creates a new LLM provider configuration.
A bedrock or vertex record must carry a credential of its own — a linked secret_id, or an apiKey in config. Without one the provider SDK signs with the server's own credentials (the AWS default credential chain, Google Application Default Credentials), which is refused with 400 VALIDATION_FAILED unless the deployment allows it.
post/v1/projects/{project_id}/ai-providers
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/ai-providers
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Request body
Example request
{
"name": "OpenAI Production",
"provider": "openai",
"default_model": "gpt-4",
"secret_id": "sec_V1StGXR8Z5jdHi6B"
}Response
AI provider created successfully
Changes
No recorded changes to this operation across all 1 revision of this API.