Parameters
No parameters required
This endpoint takes no path, query, header or body parameters.
Revokes any existing AI-agent credential for the current (user, member) pair, mints a new one (30-day lifetime, AGENT-prefixed), and returns a ready-to-paste system prompt with the credential embedded as a cookie header. Only human sessions may call this — an AI-agent credential itself is not allowed to mint further credentials.
No parameters required
This endpoint takes no path, query, header or body parameters.
1 status code documented
systemPromptstringRequiredMulti-line English system prompt with the AI-agent auth cookie, organisation name, user identity and operational rules baked in.
generatedAtstringRequiredDate the prompt was generated (YYYY-MM-DD).
expiresAtstringRequiredDate the embedded credential expires (YYYY-MM-DD, 30 days after generation).
{
"systemPrompt": "example_systemPrompt",
"generatedAt": "example_generatedAt",
"expiresAt": "example_expiresAt"
}POST /bff/ai-agent/provision
curl -X POST "https://api.bizkithub.com/bff/ai-agent/provision" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.