Create a project

post
https://api.clakta.com/v1/projects

Create a project in the team that owns the API key. Requires an API key with `projects.write` that is not restricted to specific projects. Only `name` and `slug` are required. The project is open to every member of the team, and fails with `exceeded_limit` once the team reaches its plan's project limit.

To start tracking, create a script for it with `POST /v1/projects/{idOrSlug}/scripts`.

Authentication

Send your API key as a bearer token in the Authorization header.

See Authentication for how to create and scope an API key.

Bodyapplication/json

namestringrequired

The name of the project, up to 32 characters.

slugstringrequired

The slug of the project, unique within the team. Between 3 and 48 characters, normalized to lowercase letters, numbers and hyphens.

iconstring | nulloptional

The icon of the project, as ":EMOJI_NAME:" or "ph:ICON_NAME". null removes it.

currencystringoptional

The ISO 4217 currency code the project reports revenue and ad spend in.

trackingModeenum<string>optionaldefault: privacy_friendly

How visitor data is collected: privacy_friendly (no cookies, server-estimated sessions) or full_attribution (cookies/first-party identifiers).

Allowed values:privacy_friendlyfull_attribution

Response

The created project

messagestringrequired
dataobjectrequired