Skip to content

Proxy a POST request to the AI service

POST
/api/ai/{endpoint}/{configId}
curl --request POST \
--url https://example.com/api/ai/example/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'

Forwards a POST request (with JSON body) to the configured AI server for the given endpoint and repository.

endpoint
required

AI endpoint name

string
configId
required

Repository configuration ID

string
Media typeapplication/json

Endpoint-specific AI request payload

object
Examplegenerated
{}

Proxied AI service response

Media typeapplication/json
object
Examplegenerated
{}

Missing endpoint or config id