GET /v1/projects/me
Returns all projects belonging to the authenticated account, along with their API keys and usage statistics.
code
GET https://api.flushkit.dev/v1/projects/me
Authentication
Include your API key as a Bearer token:
code
Authorization: Bearer fk_live_••••••••••••••••
Example request
bash
curl https://api.flushkit.dev/v1/projects/me \
-H "Authorization: Bearer fk_live_••••••••••••••••"
Response
200 OK
json
{
"projects": [
{
"id": "proj_01hxyz",
"name": "My App",
"createdAt": "2025-06-01T12:00:00.000Z",
"apiKey": "fk_live_••••••••••••••••",
"usage": {
"eventsThisPeriod": 142,
"eventLimit": 1000,
"connectedDevices": 3
}
}
]
}
Project fields
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | required | Unique project identifier. |
name | string | required | Display name of the project. |
createdAt | string | required | ISO 8601 timestamp of when the project was created. |
apiKey | string | required | The project's API key. Use this to authenticate SDK and server requests. |
usage.eventsThisPeriod | integer | required | Number of notifications sent in the current billing period. |
usage.eventLimit | integer | required | Maximum notifications allowed per billing period on the current plan. |
usage.connectedDevices | integer | required | Number of devices with an active SSE connection right now. |
401 Unauthorized
json
{ "code": "UNAUTHORIZED", "message": "Invalid or missing API key." }