Skip to content
Streamkap
Esc
↑↓navigate↵open⌘Jpreview

Enable Project Key Agentic

Toggle agentic use ON for a Project Key (the agentic toggle).

Atomic: rotates the API client credential, encrypts the new credential file blob with KMS, stores it on the PK row, sets agentic_enabled=True. Idempotent on already-enabled PKs (no double rotation).

Rate limit: 5/min/tenant (each call burns one Frontegg credential rotation). Returns 429 with Retry-After on bucket exhaustion.

Audit-logged with action=enable / enable_noop, actor email + sub, old/new state, tenant_id, project_key_id, timestamp.

POST/project-keys/{project_key_id}/enable-agentic
Authorization
AuthorizationBearer token · headerrequired
Path parameters
project_key_idstringrequired
Responses
200

Successful Response

idstringrequired
namestringrequired
descriptionstring | null
Show properties
Any of:
string
string
null
null
created_atstring<date-time> | null
Show properties
Any of:
string<date-time>
string<date-time>
null
null
created_by_userUser | null
Show properties
Any of:
User
idstringrequired
emailstringrequired
namestringrequired
profile_picture_urlstring | null
Show properties
Any of:
string
string
null
null
phone_numberstring | null
Show properties
Any of:
string
string
null
null
tenant_idstringrequired
created_atstring | string<date-time> | null
Show properties
Any of:
string
string
string<date-time>
string<date-time>
null
null
last_loginstring | string<date-time> | null
Show properties
Any of:
string
string
string<date-time>
string<date-time>
null
null
null
null
api_client_idstring | null
Show properties
Any of:
string
string
null
null
api_client_id_masked_secretstring | null
Show properties
Any of:
string
string
null
null
kafka_usernamestring | null
Show properties
Any of:
string
string
null
null
service_idstringrequired
rolesRole[]
Show properties
Array of Role
idstringrequired
keystringrequired
namestringrequired
descriptionstring | nullrequired
Show properties
Any of:
string
string
null
null
created_atstring | string<date-time> | null
Show properties
Any of:
string
string
string<date-time>
string<date-time>
null
null
updated_atstring | string<date-time> | null
Show properties
Any of:
string
string
string<date-time>
string<date-time>
null
null
permissionsstring[]
statusstringrequired
last_used_atstring<date-time> | null
Show properties
Any of:
string<date-time>
string<date-time>
null
null
tool_profileToolProfile | null
Show properties
Any of:
ToolProfile
string
null
null
allowed_toolsstring[] | null
Show properties
Any of:
string[]
Array of string
string
null
null
blocked_toolsstring[] | null
Show properties
Any of:
string[]
Array of string
string
null
null
agentic_enabledboolean

Whether this Project Key is wired up as the auth blob behind the Streamkap MCP. Toggled via POST /project-keys/{id}/enable-agentic and disable-agentic. When true, the encrypted credential lives on the PK row (server-side only); the agent picker on the FE filters to PKs where this is true.

default: false
agentic_secret_blobstring | null

Always masked to '********' on responses when agentic_enabled is true; null otherwise. Server-derived only - PUT/PATCH bodies that include this field are rejected with 422.

Show properties
Any of:
string
string
null
null
422

Validation Error

detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
Request
curl -X POST 'https://api.streamkap.com/project-keys/string/enable-agentic' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "id": "string",
  "name": "string",
  "description": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "created_by_user": {
    "id": "string",
    "email": "string",
    "name": "string",
    "profile_picture_url": "string",
    "phone_number": "string",
    "tenant_id": "string",
    "created_at": "string",
    "last_login": "string"
  },
  "api_client_id": "string",
  "api_client_id_masked_secret": "string",
  "kafka_username": "string",
  "service_id": "string",
  "roles": [
    {
      "id": "string",
      "key": "string",
      "name": "string",
      "description": "string",
      "created_at": "string",
      "updated_at": "string",
      "permissions": [
        "string"
      ]
    }
  ],
  "status": "string",
  "last_used_at": "2019-08-24T14:15:22Z",
  "tool_profile": "full",
  "allowed_tools": [
    "string"
  ],
  "blocked_tools": [
    "string"
  ],
  "agentic_enabled": false,
  "agentic_secret_blob": "string"
}