Skip to main content
POST
/
api
/
agent-server
/
virtual-keys
Create a new virtual key
curl --request POST \
  --url http://localhost:6060/api/agent-server/virtual-keys \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "providers": [
    {
      "provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "model_names": [
        "<string>"
      ]
    }
  ]
}
'
{
  "error": true,
  "message": "<string>",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "secret_key": "<string>",
    "providers": [
      {
        "provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "model_names": [
          "<string>"
        ]
      }
    ],
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "status": 123,
  "errorDetails": {}
}

Body

application/json
name
string
required
providers
object[]
required

Response

Virtual key created successfully

error
boolean
message
string
data
object
status
integer
errorDetails
object