Webhook logo
Clerk logo

Workflow template

Get a Clerk organization from a webhook

Look up a Clerk organization from organization_id received through a webhook. Connect the Secret Key for the Clerk instance that owns the organization and inspect the record in the action output.

How it works

From an organization ID to its Clerk record

1 Trigger · 1 Action
Webhook1 · Trigger

organization ID received

Receive organization_id at the top level of JSON. The sample org_FICTIONAL is a placeholder, so replace it with an existing organization ID from the connected instance.

Clerk2 · Action

Get the Clerk organization

Read the organization using the connected instance's Secret Key. The action returns the organization record without creating an organization, adding members or sending invitations.

The result

The selected organization's record in the action output

Example Clerk organization lookup webhook JSON

{ "organization_id": "org_FICTIONAL" }

Included fictional ID, not a captured organization response. The ID must belong to the Clerk instance associated with the connection's Secret Key.

Before activation

Set up your workflow

  1. Connect the Clerk instance that owns the record

    Use that instance's Secret Key in the Clerk connection. Identify an existing organization you may read; the key belongs in the connection, not the webhook JSON.

  2. Send an organization lookup request

    Prepare organization_id at the top level and replace org_FICTIONAL. Protect the generated webhook endpoint so only intended senders can request organization records.

  3. Inspect the record before mapping it onward

    Activate and perform a controlled lookup. Compare the returned organization with Clerk, then add further processing or a destination only if your process needs it.

Details and limitations
  • Instance ownership determines access. Use the Secret Key for the instance that owns the organization. Knowing an ID does not make an organization from another instance readable through this connection.

  • The organization read is separate from membership operations. No member-list query, invitation, role change or organization update is included. The workflow reads one record rather than importing all organizations.

  • No destination copy is maintained. The result remains in the action output. Another request reads the record again, but later changes are not automatically sent or synchronized elsewhere.

Questions about this template

Which Clerk key should I connect?

Use the Secret Key for the instance that owns the organization. Keep the key in the connection, and send only the organization_id through the webhook.

Is org_FICTIONAL a usable organization?

No. It is a placeholder. Replace it with an existing organization ID in the connected Clerk instance that you are permitted to read.

Does the workflow list members or send invitations?

No. It retrieves the organization record only. No separate member-list query, invitation, membership change or organization update is configured.

Will organization changes update another app?

No. The response is available in the action output for this request. Add a destination or another trigger if you need further processing or ongoing synchronization.

Explore connected apps

App integrations