Provision Plugin
Provision a dedicated agent identity for a plugin, and add a key for it.
Idempotent get-or-create: the first call creates an agent sub-user
for (user, plugin_key); every later call returns the same agent.
Every call adds one new key, so each machine holds its own. The
returned key is shown once and never retrievable again.
Provisioning never deletes a key. An agent already holding
MAX_USER_API_KEYS keys (default 10) answers 409 and nothing changes:
free a slot through DELETE /plugins/{plugin_key}/keys/{key_id}.
Provisioning does not revoke a leaked key either: revoke it the same
way, or every key through DELETE /plugins/{plugin_key}.
Path Parameters
- plugin_key (str): Key of a known plugin (see GET /api/v1/integrations/status).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.