API
API reference
Two HTTP services: the management API behind the dashboard, and the delivery API that SDKs and browsers read from. Both have committed OpenAPI documents.
Management API requests carry a user token and are checked against the caller’s organization role. Delivery API requests carry an SDK key; the two never cross. Errors are always { error: { code, message } }.
- 01
Session
Management API, 1 operation. Who the caller is and which organizations they belong to, with their role in each.
- 02
Organizations
Management API, 3 operations. Create an organization, read it and rename it.
- 03
Members
Management API, 3 operations. List members, change their role or remove them.
- 04
Invitations
Management API, 5 operations. Invite people by a one-time link, list and revoke invitations, preview and accept them.
- 05
Projects
Management API, 4 operations. List, create, rename and archive projects.
- 06
Environments
Management API, 5 operations. List, create, update and archive environments, and read an environment summary.
- 07
Flags
Management API, 7 operations. Create flags, edit their metadata and variations, duplicate, archive and unarchive them.
- 08
Flag configuration
Management API, 5 operations. Read and publish a flag’s targeting in one environment, toggle it, list versions and restore one.
- 09
Segments
Management API, 5 operations. List, create, read, update and archive a project’s reusable segments.
- 10
Evaluation debugger
Management API, 2 operations. Evaluate one flag, or every flag, for a sample context on the server.
- 11
SDK keys
Management API, 3 operations. List, create and revoke the server and client keys of an environment.
- 12
Audit log
Management API, 1 operation. Read the organization’s audit events, filtered by project, environment and flag.
- 13
Delivery: server SDKs
Delivery API, 3 operations. Fetch the current or a historical snapshot with a server key, and the optional hint stream.
- 14
Delivery: browser clients
Delivery API, 2 operations. Evaluate client-enabled flags for a browser context with a client key.