API: Credentials
API: Credentials
API: Credentials
The Credentials API provides RPCs for creating, revoking, and rotating API credentials used by external integrations to authenticate with tieback.
Brand administrators and developers who manage programmatic access to the tieback platform.
Creates a new API credential for the specified brand. The caller provides a client ID and a hashed client secret — plaintext secrets are never sent to or stored by the server.
Permanently revokes an API credential. Revoked credentials can no longer authenticate. Revocation cannot be undone — create a new credential if access is needed again.
Replaces the secret hash on an existing credential without revoking it. The credential remains active with the new secret. Cannot be used on revoked credentials.
Use supabase.functions.invoke for all edge-backed credential operations. Do not use raw fetch — the Kong gateway requires both Authorization and apikey headers, which the SDK attaches automatically.
This applies to all actions: list, create, rotate, revoke.
Can I see the client secret after creation? No. The plaintext secret is available only at the moment of creation in the UI. The API accepts only hashed values.
Can I reactivate a revoked credential? No. Revocation is permanent. Create a new credential if access is needed again.