Ordnary

Docs Ordnary Web Services Ordnary Halyard

Quickstart

Create a project, add a flag, turn it on in Development and read it from your app with curl or JavaScript.

5 min readBeginner
  1. 1

    Activate Ordnary Halyard

    In the console, open Halyard and activate it. It is free while in beta.

  2. 2

    Create a project

    Name it after your app. It comes with Production, Staging and Development, each with its own SDK key under SDK keys.

  3. 3

    Add a flag

    Create a boolean flag with the key new-checkout. It starts off in every environment.

  4. 4

    Turn it on in Development

    Flip the switch in the Development column, or open the flag to add a rule or a rollout first.

Read the flag

Send the user as a context and use the value you get back. Use the Development SDK key while you build.

curl
curl https://halyard.ordnary.com/v1/evaluate \
  -H "Authorization: Bearer ofk_..." \
  -H "Content-Type: application/json" \
  -d '{"context": {"key": "user-123", "email": "ada@example.com"}}'
JavaScript
const res = await fetch("https://halyard.ordnary.com/v1/evaluate", {
  method: "POST",
  headers: { Authorization: "Bearer ofk_...", "Content-Type": "application/json" },
  body: JSON.stringify({ context: { key: user.id, email: user.email } }),
});
const { flags } = await res.json();

if (flags["new-checkout"]?.value === true) {
  showNewCheckout();
}

Every field of the API

Evaluating locally, the configuration document and errors.

Open the API reference
Was this page helpful?
Updated 2 November 2026 Suggest an edit

Choose which cookies Ordnary may use. You can change this at any time via Cookie settings at the bottom of every page.