Skip to content

Reference

API: Organisations

Who a token acts as, and the organisations it reaches.

Part of the API reference: requests carry a personal access token as Authorization: Bearer <token>, and bodies and answers are JSON.

Organisations

GET /v1/whoami

Who the token acts as

Answer (200)

  • personobject or null
  • person.idinteger
  • person.namestring
  • person.emailstring or null
  • viastring
    One of session, token, app
  • appstring or null
    The connected app's name when an app is calling.
  • scopestring
    One of full, run, read
  • organisationstring or null
    The one organisation a connected app is limited to; null for all.
Terminal
curl "https://api.typefuse.dev/v1/whoami" \
  -H "Authorization: Bearer $TYPEFUSE_TOKEN"

GET /v1/organisations

List your organisations

Answer (200)

  • organisationsarray
Terminal
curl "https://api.typefuse.dev/v1/organisations" \
  -H "Authorization: Bearer $TYPEFUSE_TOKEN"