Projects
Create Project
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.
application/json- body
name*stringprivate*booleanerrorTrackingEnabled?boolean|nullwebVitalsEnabled?boolean|nullsessionReplaysEnabled?boolean|nulltemplateId?string|null|nullallowedHostnames?array<string>|null|nullicon?|null|nullSuccess
application/json- response
id*stringname*stringallowedHostnames*array<string>|nullerrorTrackingEnabled*booleanwebVitalsEnabled*booleansessionReplaysEnabled*booleanreplayRetentionDays*number||nullcookielessMode*boolean|nullsearchConsoleSiteUrl*string|nulltoken*string|nullslug*stringprivate*booleantemplateId*string|nullpreferredChartColors*array<string>|nullcodeContextConfig*|nullicon*|nullcreatedAt*stringfirstEventAt*string|nullownerId*stringowner?|null|nullcurl -X POST "https://example.com/v0/projects" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "private": true }'{ "id": "string", "name": "string", "allowedHostnames": [ "string" ], "errorTrackingEnabled": true, "webVitalsEnabled": true, "sessionReplaysEnabled": true, "replayRetentionDays": 0, "cookielessMode": true, "searchConsoleSiteUrl": "string", "token": "string", "slug": "string", "private": true, "templateId": "string", "preferredChartColors": [ "string" ], "codeContextConfig": { "enabled": true, "codebergApiUrl": "string", "repository": "string", "ref": "string", "mappings": [ { "id": "string", "provider": "github", "javaPrefix": "string", "repository": "string", "ref": "string", "pathPattern": "string", "automatic": true, "contextKey": "string", "fixedRef": "string", "versionRefs": { "property1": "string", "property2": "string" } } ] }, "icon": { "type": "icon", "value": "string", "color": "string" }, "createdAt": "string", "firstEventAt": "string", "ownerId": "string", "owner": { "id": "string", "name": "string", "slug": "string", "image": "string", "type": "user", "createdAt": "string" }}