Skip to content
Developers
Pilot. The API is open to a small number of organisations and may change — every change is in the changelog.

Reference · Account

Check a key

GET/v1/me

Says which organisation a key belongs to, what it is called, its rate limit, and every site it reaches with what it may do at each. Call it first, to check a key works and to learn the site ids every other call takes.

Headers

  • Authorizationrequired

    An API key from Automation > Access in the Dnero portal, sent as Authorization: Bearer <key>.

    string

Responses

200 OK

  • keyrequired

    The key this request was made with.

    object

    4 fields
    • idrequired

      The key's id. Quote it when asking Dnero about this key.

      string

    • namerequired

      The name the key was given in the Dnero portal.

      string

    • rateLimitrequired

      Requests this key may make per minute.

      integer

    • expiresAt

      When the key stops working. Absent for a key that does not expire.

      string · date-time

  • organisationrequired

    The organisation the key belongs to.

    object

    2 fields
    • idrequired

      The organisation's id.

      string

    • namerequired

      The organisation's name.

      string

  • sitesrequired

    Every site the key reaches, by name.

    array of objects

    5 fields in each
    • accessrequired

      What this key may do at the site.

      object

      2 fields
      • cataloguerequired

        Products, categories, modifiers, taxes and menus. read lists them; write also creates and changes them.

        string · one of "none", "read", "write"

      • ordersrequired

        Orders. read looks them up; write also sends new ones.

        string · one of "none", "read", "write"

    • currencyrequired

      The currency the site trades in, ISO 4217. Every amount at this site is in its minor units.

      string

    • idrequired

      The site's id. Every site-level path takes it.

      string

    • namerequired

      The site's name.

      string

    • timeZonerequired

      The site's time zone, IANA. Times in the API are UTC; this says what local time they are.

      string