Skip to content

API reference

List the invitations to you

Other routes API

GET/v1/session/invitations

Returns the pending, unexpired invitations to the signed-in person’s own email address, from every workspace, oldest first. Only a signed-in person. An API key is refused with 401 session_required.

Response

A 200 answer carries these fields.

  • invitationsarray of objectRequired
    Show 6 child fields
    • idstring (uuid)Required
    • workspaceobjectRequired
      Show 2 child fields
      • idstring (uuid)Required
      • namestringRequired
    • rolestringRequired
      One of owner, admin, developer, operator, auditor.
    • accessstringRequired
      One of all, selected.
    • companiesarray of objectRequired
      Show 2 child fields
      • idstring (uuid)Required
      • namestringRequired
    • expiresAtstring (date-time)Required

Status codes

Status Meaning
200 The invitations to this person.
401 No usable credential was sent (invalid_credentials), or an API key was used (session_required).
GET/v1/session/invitations
Example
curl https://api.certinvo.com/v1/session/invitations \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/session/invitations`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

response = requests.get(
    "https://api.certinvo.com/v1/session/invitations",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "invitations": [
    {
      "id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
      "workspace": {
        "id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
        "name": "string"
      },
      "role": "owner",
      "access": "all",
      "companies": [
        {
          "id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
          "name": "string"
        }
      ],
      "expiresAt": "2026-09-17T09:30:00Z"
    }
  ]
}
Success response
GET
/v1/session/invitations
List the invitations to you
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/session/invitations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close