Skip to main content

Provision a Producer

Provision a Producer

Producer provisioning creates a least-privilege OAuth client and returns a flat credential bundle that the SDK can use.

ADMIN_URL="http://localhost:8090"
TOKEN="$BROKER_PROVISION_TOKEN"

curl -sf -X POST "$ADMIN_URL/api/v1/producer-provisioning" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"companySlug": "acme",
"producerSlug": "web-app",
"displayName": "Acme web app",
"environment": "production",
"scopes": ["events.write"]
}'

The clientSecret is returned only on create and rotate. Store it immediately.