Retrieve a secret set

Updated

Retrieves the key names in a secret set.

Preview documentation

You're reading the Conversational AI Platform (Preview) docs. Switch to Main.
GET
https://preview.ai.agora.io/conversational-ai/v1/projects/{appid}/secrets/{name}

Path Parameters

appidstring
Required

The App ID of your project.

namestring
Required

The name of the secret set.

Response Body

The request was successful. The response body lists the keys in the set. Secret values are never returned.

Response Headers

Agora-Request-Idstring

A unique ID for the request. Include it when you contact Agora support.

ETagstring

The current version of the resource. Pass this value in the If-Match header of your next update or delete request for this resource.

namestring
Required

The name of the secret set.

keysarray<string>
Required

The names of the keys in the set. Values are never returned.

create_tsinteger
Required

The time the set was created, as a Unix timestamp in seconds.

update_tsinteger
Required

The time the set was last updated, as a Unix timestamp in seconds.

Authorization

This endpoint requires authentication.

Request examples

Example Request
curl -X GET 'https://preview.ai.agora.io/conversational-ai/v1/projects/string/secrets/string'

Response example

Example Response
{  "name": "support_prod",  "keys": [    "llm"  ],  "create_ts": 1789898400,  "update_ts": 1790000000}