curl -X PUT https://api.portkey.ai/v1/admin/organisation/auth-settings/jwt \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jwks_url": "https://idp.example.com/.well-known/jwks.json"
}'
{
"object": "organisation_jwt_settings",
"jwks_url": "<string>",
"jwks": {
"keys": [
{}
]
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}Update JWT Settings
Configure how JWT bearer tokens are verified, using either a remote JWKS URL or an inline public JWKS. At least one of jwks_url or jwks is required.
Available on plans that include JWT authentication.
Requires an organisation API key with the organisation_auth.update scope.
PUT
/
admin
/
organisation
/
auth-settings
/
jwt
curl -X PUT https://api.portkey.ai/v1/admin/organisation/auth-settings/jwt \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jwks_url": "https://idp.example.com/.well-known/jwks.json"
}'
{
"object": "organisation_jwt_settings",
"jwks_url": "<string>",
"jwks": {
"keys": [
{}
]
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}Portkey is now PRISMA AIRS AI Gateway. See it in action.
Contact Us
Body
application/json
Last modified on December 4, 2026
Was this page helpful?

