Skip to content

Integrations

Clerk

Connect Clerk to Alter Vault for secure API access

Use Clerk credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Template IDclerk
CategoryDeveloper Tools
Credential TypeBearer Token

Log in to the Clerk Dashboard

Log in to the Clerk Dashboard and select the application.

Open API keys

In the left sidebar, open API keys.

Copy the Secret Key

Under Secret keys, copy the Secret Key (starts with sk_live_ or sk_test_).

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Clerk

Go to Managed Secrets > Add Provider > Clerk.

Enter credentials

Paste the Secret Key into the credential field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

from alter_sdk import PendingApproval
response = await alter_app.proxy_request(
HttpMethod.GET,
"https://api.clerk.com/v1/users",
grant_id="YOUR_GRANT_ID",
)
if isinstance(response, PendingApproval):
for gate in response.gates:
print("Approval required:", gate.approval_url)
response = await alter_app.await_approval(response.approval_id)

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider pathNotes
GetUserListreadGET/v1/users—
CreateUserwritePOST/v1/users—
GetUsersCountreadGET/v1/users/count—
GetUserreadGET/v1/users/{user_id}—
UpdateUserwritePATCH/v1/users/{user_id}—
DeleteUserdeleteDELETE/v1/users/{user_id}—
UpdateUserMetadatawritePATCH/v1/users/{user_id}/metadata—
BanUseradminPOST/v1/users/{user_id}/ban—
UnbanUseradminPOST/v1/users/{user_id}/unban—
GetOAuthAccessTokenreadGET/v1/users/{user_id}/oauth_access_tokens/{provider}refused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it)
UsersGetOrganizationMembershipsreadGET/v1/users/{user_id}/organization_memberships—
CreateInvitationadmin, send, writePOST/v1/invitationsallowed; its secret is never stored in a payload capture
ListInvitationsreadGET/v1/invitationsallowed; its secret is never stored in a payload capture
RevokeInvitationadminPOST/v1/invitations/{invitation_id}/revoke—
ListOrganizationsreadGET/v1/organizations—
CreateOrganizationwritePOST/v1/organizations—
GetOrganizationreadGET/v1/organizations/{organization_id}—
UpdateOrganizationadmin, writePATCH/v1/organizations/{organization_id}—
DeleteOrganizationdeleteDELETE/v1/organizations/{organization_id}—
ListOrganizationMembershipsreadGET/v1/organizations/{organization_id}/memberships—
CreateOrganizationMembershipadmin, send, writePOST/v1/organizations/{organization_id}/memberships—
GetSessionListreadGET/v1/sessions—
GetSessionreadGET/v1/sessions/{session_id}—
RevokeSessionadmin, deletePOST/v1/sessions/{session_id}/revoke—
CreateSessionTokenadminPOST/v1/sessions/{session_id}/tokensrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it)
GetJWKSreadGET/v1/jwks—
CreateSignInTokenadminPOST/v1/sign_in_tokensrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
CreateActorTokenadminPOST/v1/actor_tokensrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.