Skip to main content
POST
Create a Google Credential

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

CreateGoogleCredentialRequestData

integration_id
string
required

The ID of the Google integration this credential belongs to

Pattern: ^gwitg_[0-9a-hjkmnp-tv-z]{26}$
Example:

"gwitg_01hq8xyzabc123def456ghi789"

oauth2_client_id
string
required

The OAuth2 client ID from the service account

Example:

"123456789012345678901"

oauth2_client_email
string
required

The OAuth2 client email from the service account

oauth2_private_key
string | null

The OAuth2 private key from the service account JSON key file

use_platform_credentials
boolean

Whether to use platform-managed credentials instead of customer-provided

notes
string

Optional notes about this credential

Maximum string length: 1000

Response

GoogleCredentialDetailedResponseData

id
string
required
Example:

"gwcrd_01hq8xyzabc123def456ghi789"

integration_id
string
required
Example:

"gwitg_01hq8xyzabc123def456ghi789"

state
enum<string>
required

The current lifecycle state of the credential

Available options:
staged,
active,
expiring,
expired,
deactivated
oauth2_client_id
string
required

The OAuth2 client ID

oauth2_client_email
string
required

The OAuth2 client email

oauth2_scopes
string[] | null
required

The OAuth2 scopes

use_platform_credentials
boolean
required

Whether platform-managed credentials are used

notes
string | null
required

Optional notes

timestamp
TimestampStateData · object
required

The timestamps for the credential record

API hyperlinks related to the record