🚀 Introducing Agent Gateway — governance, observability, and control for your AI agents.  Register for live webinar ↗
curl -X POST https://api.portkey.ai/v1/secret-references \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "my-aws-secret",
"manager_type": "aws_sm",
"auth_config": {
"aws_auth_type": "accessKey",
"aws_access_key_id": "AKIA...",
"aws_secret_access_key": "wJal...",
"aws_region": "us-east-1"
},
"secret_path": "prod/api-keys/openai"
}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"object": "secret-reference"
}curl -X POST https://api.portkey.ai/v1/secret-references \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "my-aws-secret",
"manager_type": "aws_sm",
"auth_config": {
"aws_auth_type": "accessKey",
"aws_access_key_id": "AKIA...",
"aws_secret_access_key": "wJal...",
"aws_region": "us-east-1"
},
"secret_path": "prod/api-keys/openai"
}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"object": "secret-reference"
}Documentation Index
Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
1 - 255aws_sm, azure_kv, hashicorp_vault Show child attributes
1024Required if not using API key auth
Auto-generated from name if omitted
255^[a-zA-Z0-9_-]+$1024255Cannot be true when allowed_workspaces is provided
Array of workspace UUIDs or slugs. Mutually exclusive with allow_all_workspaces=true.
1Show child attributes
Was this page helpful?