HydraCore
API by router

Tenant

Get Persona

GET
/v1/tenant/agent-persona

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response
is_default*Is Default
system_prompt*System Prompt
Example Request
curl -X GET 'https://example.com/v1/tenant/agent-persona'
Example Response
{  "is_default": true,  "system_prompt": "string"}

Set Persona

PUT
/v1/tenant/agent-persona

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
system_prompt*System Prompt
Lengthlength <= 4000

Response Body

Successful Response

application/json
  1. response
is_default*Is Default
system_prompt*System Prompt
Example Request
curl -X PUT 'https://example.com/v1/tenant/agent-persona' \  -H 'Content-Type: application/json' \  -d '{  "system_prompt": "string"}'
Example Response
{  "is_default": true,  "system_prompt": "string"}