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
List projects
Returns the projects accessible with the current API token. Use this to resolve a project name to its id before querying analytics with an account API key.
POST
https://api.seline.com/api/v1/projects
Click anywhere to copy
With a project token this returns that single project. With an account token this returns all owned and collaborated projects.
Each project includes pro, which is true when the project has an active subscription, and linkedProjectId, the Pro project it shares a subscription with. Use Pro projects as linkedProjectId when creating a project.
Example request
curl -X POST 'https://api.seline.com/api/v1/projects' \-H 'Authorization: Bearer API_TOKEN' \-H 'Content-Type: application/json' \-d '{}'
Click anywhere to copy
Response
{"data": [{"id": "project_01hxyz...","name": "My Site","domain": "example.com","pro": true,"linkedProjectId": null},{"id": "project_01habc...","name": "Docs","domain": "docs.example.com","pro": false,"linkedProjectId": "project_01hxyz..."}]}
Click anywhere to copy