Actors

Upsert an external actor

Changed on

Upserts by (provider_tenant_id, provider_user_id). Omitted attributes keep their stored values; provided attributes are overwritten, including empty values. An unchanged actor is not rewritten. Actors written through this endpoint always have the external provider.

put/orgs/{orgID}/projects/{projectID}/actors

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf

Path parameters

orgID, string required

Organization ID (org_...).

projectID, string required

Project ID (proj_...).

Request body

ExternalActorParams required

Identity and attributes of an external actor. Actors are upserted by (provider_tenant_id, provider_user_id) with the external provider. Omitted attributes keep their stored values; provided attributes are overwritten, including empty values. omnara actors are implicit and hosted integrations own their own actor identities.

provider_tenant_id, string

Your tenant or namespace for the user. With provider_user_id, identifies the actor.

provider_user_id, string required

The user's ID in your system. With provider_tenant_id, identifies the actor.

display_name, string

Display name for the actor.

metadata, Metadata

Key-value attributes for the actor. Replaces stored metadata when sent.

Response

The upserted actor.

Actor required
id, string required
org_id, string required
project_id, string required

Project ID (proj_...).

provider, 'omnara' | 'integration' | 'external' required

omnara for Omnara identities, integration for hosted integration senders, or external for API-managed actors.

provider_tenant_id, string

Project-scoped identity namespace. Integration actors use a stable platform namespace (slack:<workspace ID>, discord, or github:github.com), shared across configured bots and integration kinds on that platform. Retained for attribution after integration deletion; not an authorization principal.

provider_user_id, string required

Stable sender identifier within the actor identity namespace.

display_name, string
metadata, Metadata required

Saved actor attributes. Hosted integration actors store source_label (such as Slack) for display without a live integration lookup.

created_at, string date-time required
updated_at, string date-time required

Changes

    • warning

      added the new integration enum value to the provider response property for the response status

    • info

      removed the slack enum value from the provider response property for the response status

    • info

      added the optional property current_digest to the response with the status

    158 more changes in this revision