REST APIGET /v1/projects/me

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

ParameterTypeRequiredDescription
idstringrequiredUnique project identifier.
namestringrequiredDisplay name of the project.
createdAtstringrequiredISO 8601 timestamp of when the project was created.
apiKeystringrequiredThe project's API key. Use this to authenticate SDK and server requests.
usage.eventsThisPeriodintegerrequiredNumber of notifications sent in the current billing period.
usage.eventLimitintegerrequiredMaximum notifications allowed per billing period on the current plan.
usage.connectedDevicesintegerrequiredNumber of devices with an active SSE connection right now.

401 Unauthorized

json
{ "code": "UNAUTHORIZED", "message": "Invalid or missing API key." }