Integrations

Save Integration Credentials

POST
/v0/projects/{idOrSlug}/integrations

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
integrationId*string
authType*string
Value in"oauth""api_key""webhook_secret""app_install"
fields*

Response Body

IntegrationConnectionRecord

application/json
  1. response
id*string
provider*string
authType*string
Value in"oauth""api_key""webhook_secret""app_install"
status*string
Value in"connected""needs_reconnect""revoked"
displayName*string|null
externalAccountName*string|null
ownerType*string
Value in"workspace""project"
curl -X POST "https://example.com/v0/projects/string/integrations" \  -H "Content-Type: application/json" \  -d '{    "integrationId": "string",    "authType": "oauth",    "fields": {      "property1": "string",      "property2": "string"    }  }'
{  "id": "string",  "provider": "string",  "authType": "oauth",  "status": "connected",  "displayName": "string",  "externalAccountName": "string",  "ownerType": "workspace"}