Endpoints
Projects
List projects
Create project
Data over time
Visits and pageviews
Charges
Counts and totals
Stats
Pages
Metrics
Custom events
Events & properties
List
Property values
Field keys
Field values
Funnels
Funnel
Visitors
List
Find
Events
Most active
AI insight
Ingest data
Events
Other
Guidance
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
stringRequiredProject name, up to 30 characters. Must be unique across your projects.
domain
stringRequiredWebsite hostname, e.g. example.com. Protocol and path are stripped.
timezone
stringIANA timezone used for charts and date ranges, e.g. Europe/Berlin. Default is UTC.
linkedProjectId
stringRequiredId 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