Credentials
Import a credential
This endpoint imports a credential into your account.
POST
You’ll import a credential in the event that you’ve authenticated a user with a provider outside of Sequin. For example, you might have your users authenticate to Stripe via an OAuth flow you control. You can then import that credential into Sequin.
Importing a credential is an idempotent operation. Sequin upserts credentials. So, if you attempt to import a credential for an existing Salesforce account, only one credential will be created.
Request parameters
string
A name for your credential.
object
required
The credential properties for the provider.
The
properties parameter depend on the kind of credential you’re importing. See the list of possible values.string
required
OAuth app to associate with the credential. Learn more about the OAuth app object.Note that this OAuth app must have the same
client_id and client_secret that you used to originally obtain the credential.object
Metadata for the credential. This is a free-form object that you can use to store any additional information you want to associate with the credential.
Response fields
string
ID of the credential.
string
Provider of the credential (e.g.
github, stripe, etc). See the list of possible values.string
Kind of credential (e.g.
stripe_oauth, github, etc). See the list of possible values.object
Status of the credential. Learn more about the health object.
object
OAuth app associated to the credential. Learn more about the OAuth app object.
credential_properties
The properties for the credential. This field is polymorphic based on the credential kind. Learn more about credential properties.
string
Metadata for the credential. This is a free-form object that you can use to store any additional information you want to associate with the credential.
string
Timestamp of when the credential was created, in ISO 8601 format.
string
Timestamp of when the credential was last updated, in ISO 8601 format.

