Dozor
User

List pending invites addressed to the caller's email

Lazy expiry — past-TTL rows are filtered out and status-flipped to `EXPIRED` in the background. The daily cron hard-deletes past-TTL rows overnight; this keeps the schema clean between runs without an extra scheduled job.

GET/api/user/invites

Lazy expiry — past-TTL rows are filtered out and status-flipped to EXPIRED in the background. The daily cron hard-deletes past-TTL rows overnight; this keeps the schema clean between runs without an extra scheduled job.

Response Body

application/json

curl -X GET "https://loading/api/user/invites"
[
  {
    "id": "inv_w7x8y9z0",
    "role": "ADMIN",
    "expiresAt": "2026-04-29T10:30:00.000Z",
    "createdAt": "2026-04-26T10:30:00.000Z",
    "organization": {
      "id": "org_partner",
      "name": "Partner Corp",
      "image": "https://api.dicebear.com/9.x/shapes/svg?seed=partner"
    },
    "invitedBy": {
      "name": "Riley Partner",
      "email": "riley@partner-corp.com"
    }
  }
]
Empty