organization.ai_provider_config
Subscribe an endpoint to every event on this page with organization.ai_provider_config.*. Each is the envelope every webhook event shares, with the AiProviderConfigEventObject object as its data.object.
An organization's AI provider configuration as a webhook event carries it: the provider, the model, and the hint of the credential, which is never carried.
objectstring
One of: organization.ai_provider_config
The kind of object this is, always organization.ai_provider_config: the family of the event types that carry it, and what tells the members of WebhookEventObject apart.
organization_idstring (uuid)
Identifier of the organization the configuration belongs to.
providerstring
One of: anthropic, mistral
The provider agent runs are routed through.
modelstring
The provider's model agent runs use.
credential_hintstring
The last four characters of the stored credential, as getOrganizationAiProviderConfig shows them, and empty for a credential shorter than 12 characters, of which four would be too large a part.
versioninteger (int64)
The configuration's version once this change was made. It climbs with every change a read of the configuration shows, so of two events about one configuration the one carrying the higher version is the later state: events are not delivered in order. A delete is the configuration's last version change: organization.ai_provider_config.deleted carries a version past every one the configuration held, and below the one a configuration created afterwards starts at, so an event that arrives after the delete is never mistaken for the later state.
An organization's AI provider configuration was created.
Triggered by
organization.ai_provider_config.create: Always.POST /v1/organizations/{organization_id}/ai-provider-config:postOrganizationAiProviderConfig,mountaya.admin.organizations.postOrganizationAiProviderConfig()in TypeScript. Every configuration created.
Payload
typestring
One of: organization.ai_provider_config.created
Always organization.ai_provider_config.created.
data.objectAiProviderConfigEventObject
The AI provider configuration.
Every other field is the envelope every webhook event shares.
An organization's AI provider configuration was written: its model, its credential or its base URL.
Triggered by
organization.ai_provider_config.update: When the model or the base URL changes, or when a credential is sent, which replaces the one stored. A request sending the model and the base URL already held, and no credential, writes nothing and records nothing.PATCH /v1/organizations/{organization_id}/ai-provider-config:patchOrganizationAiProviderConfig,mountaya.admin.organizations.patchOrganizationAiProviderConfig()in TypeScript. Every change accepted.
Payload
typestring
One of: organization.ai_provider_config.updated
Always organization.ai_provider_config.updated.
data.objectAiProviderConfigEventObject
The AI provider configuration.
data.previous_attributesobject
The former value of each field of data.object the change moved, and of no other.
Every other field is the envelope every webhook event shares.
An organization's AI provider configuration was deleted, its credential with it.
Triggered by
organization.ai_provider_config.delete: When one was configured. Deleting none records nothing.DELETE /v1/organizations/{organization_id}/ai-provider-config:deleteOrganizationAiProviderConfig,mountaya.admin.organizations.deleteOrganizationAiProviderConfig()in TypeScript. Every request.
Payload
typestring
One of: organization.ai_provider_config.deleted
Always organization.ai_provider_config.deleted.
data.objectAiProviderConfigEventObject
The AI provider configuration.
Every other field is the envelope every webhook event shares.