Skip to Content
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"
Example Request
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"
}