Flikk
API

Organizations

Pick an organization, read its members and invitations, and change its name or slug.

Pick an organization

Every call acts on one organization. Send its slug in the x-org-slug header, and without it the call uses your first organization. The CLI keeps an active organization, which -o overrides for one command.

flikk org list
flikk org use your-org

List members

List an organization's members with their profile and role, looked up by the organization's id or slug.

curl https://api.flikk.dev/api/organizations/your-org/members \
  -H "Authorization: Bearer flk_your_api_key" \
  -H "x-org-slug: your-org"

To check one person, add their user id: GET /api/organizations/{key}/members/{userId} returns their membership, or null when they aren't a member.

Invitations

List the pending invitations with GET /api/organizations/{key}/invitations, and revoke one by its id.

curl -X DELETE https://api.flikk.dev/api/organizations/invitations/your-invitation-id \
  -H "Authorization: Bearer flk_your_api_key" \
  -H "x-org-slug: your-org"

Change the name or slug

Send the new name, slug or logo URL inside data. Only owners and admins can change the organization, and a slug someone already uses answers 409 slug_taken.

curl -X PATCH https://api.flikk.dev/api/organizations \
  -H "Authorization: Bearer flk_your_api_key" \
  -H "x-org-slug: your-org" \
  -H "Content-Type: application/json" \
  -d '{ "data": { "name": "Acme Logistics", "slug": "acme-logistics" } }'

To see whether a slug is free first, call GET /api/organizations/check-slug/{slug}, which needs no API key.

Delete an organization

DELETE /api/organizations/{organizationId} deletes the organization and all of its data for good, and you can't undo it.

On this page