Skip to main content
GET
/
v1
/
environments
/
{environmentId}
/
playground
Get playground configuration
curl --request GET \
  --url https://api.alpic.ai/v1/environments/{environmentId}/playground \
  --header 'Authorization: Bearer <token>'
{
  "isPlaygroundEnabled": true,
  "serverMetadata": {
    "name": "<string>",
    "description": "<string>",
    "headers": [
      {
        "name": "<string>",
        "description": "<string>",
        "isRequired": true,
        "isSecret": true
      }
    ],
    "examplePrompts": [
      {
        "title": "<string>",
        "prompt": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer token for authentication. Use an API key from the API Keys page in team settings, or an OAuth access token.

Path Parameters

environmentId
string
required

The ID of the environment

Response

The playground configuration

isPlaygroundEnabled
boolean
required
serverMetadata
object
required