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`.

Autenticação

Envie sua chave de API como bearer token no cabeçalho Authorization.

Veja Autenticação para saber como criar uma chave de API e definir seus escopos.

Corpoapplication/json

namestringobrigatório

The name of the project, up to 32 characters.

slugstringobrigatório

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

iconstring | nullopcional

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

currencystringopcional

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

trackingModeenum<string>opcionalpadrão: privacy_friendly

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

Valores aceitos:privacy_friendlyfull_attribution

Resposta

The created project

messagestringobrigatório
dataobjectobrigatório