Create project

Creates a project for a new website and links it to an existing Pro project, so both share one subscription. Returns the project token and a ready-to-paste script tag to install Seline on the site.

POST
https://api.seline.com/api/v1/projects/create
Click anywhere to copy

Requires an account API key. The linked project must have an active Pro subscription; find one with pro: true in the projects list.

Parameters

name
stringRequired
Project name, up to 30 characters. Must be unique across your projects.
domain
stringRequired
Website hostname, e.g. example.com. Protocol and path are stripped.
timezone
string
IANA timezone used for charts and date ranges, e.g. Europe/Berlin. Default is UTC.
linkedProjectId
stringRequired
Id of a Pro project to share a subscription with. Find it in the projects list where pro is true.
Example request
curl -X POST 'https://api.seline.com/api/v1/projects/create' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Blog",
"domain": "blog.example.com",
"timezone": "Europe/Berlin",
"linkedProjectId": "project_01hxyz..."
}'
Click anywhere to copy
Response
{
"id": "project_01hdef...",
"name": "Blog",
"domain": "blog.example.com",
"token": "a1b2c3d4e5f6a7b",
"linkedProjectId": "project_01hxyz...",
"script": "<script async src=\"https://cdn.seline.com/seline.js\" data-token=\"a1b2c3d4e5f6a7b\"></script>"
}
Click anywhere to copy