Integrations
Save Integration Credentials
POST
apiKeyAuthheader
x-api-key<token>FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
idOrSlug*stringapplication/json- body
integrationId*stringauthType*stringValue in
"oauth""api_key""webhook_secret""app_install"fields*IntegrationConnectionRecord
application/json- response
id*stringprovider*stringauthType*stringValue in
"oauth""api_key""webhook_secret""app_install"status*stringValue in
"connected""needs_reconnect""revoked"displayName*string|nullexternalAccountName*string|nullownerType*stringValue in
"workspace""project"curl -X POST 'https://api.faststats.dev/v0/projects/string/integrations' \
-H 'Content-Type: application/json' \
-d '{
"integrationId": "string",
"authType": "oauth",
"fields": {
"property1": "string",
"property2": "string"
}
}'Example Response
{
"id": "string",
"provider": "string",
"authType": "oauth",
"status": "connected",
"displayName": "string",
"externalAccountName": "string",
"ownerType": "workspace"
}