SDK initialization snippet for a platform
Copy-paste initialization code for the project (Flutter, web or raw HTTP) with the public project key filled in. The project secret never appears in a snippet.
Authorization
bearerAuth AuthorizationBearer <token>
Session token issued by the accounts service (or the legacy /v1/auth routes).
In: header
Path Parameters
project_uuid*string
Format
uuidQuery Parameters
platform*string
Value in
- "web"
- "flutter"
- "node"
- "react"
- "nextjs"
- "react-native"
- "python"
- "go"
- "java"
- "android"
- "swift"
- "ruby"
- "php"
- "dotnet"
- "unity"
- "http"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/snippet?platform=web"{ "language": "bash", "note": "The project key only allows writes and is safe to ship in apps. Keep the project secret on your servers, out of version control; snippets never include it.", "platform": "http", "project_key": "3142566d8c88721d6d34bd9443d556bf", "project_uuid": "5f1c2e7a-1c2d-4b3e-9f10-1a2b3c4d5e6f", "snippet": "curl -X POST https://api.iforevents.com/v1/events/track -H \"X-Project-Key: 3142566d8c88721d6d34bd9443d556bf\" ..."}