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.

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"
},
{
"id": "project_01habc...",
"name": "Docs",
"domain": "docs.example.com"
}
]
}
Click anywhere to copy