AttendBeacon
Open the workspace

API reference

Share kit

The share kit's leaderboard.

Get the share kit leaderboard

GET/events/{eventId}/share-kit/leaderboard

Gets who spread the word best: speakers and sponsors by name with the clicks, orders and tickets their link or code brought, and attendees together.

Scopes
sharekit:read
Module
sharekit Refused with moduleOff while the event's organiser has it switched off.

    Parameters

    path

    • eventIdstring (uuid)required

      The event's id.

    query

    • limitinteger (int32)

      How many rows, up to 100.

      Default: 25

    Answers

    • 200 The leaderboard. ShareLeaderboard
      Fields
      • eventIdstring (uuid)

        The event's id.

      • currencystring

        ISO 4217.

      • dataobject[]

        The rows, most tickets first.

        Show the fields
        • rankinteger (int32)

          Its place.

        • kindstring

          Speaker or sponsor.

        • namestring

          Their name.

        • codestring or null

          Their personal discount code.

        • clicksinteger (int32)

          Clicks on their link.

        • ordersByLinkinteger (int32)

          Orders through their link.

        • ordersByCodeinteger (int32)

          Orders with their code.

        • ordersinteger (int32)

          Orders in all.

        • ticketsinteger (int32)

          Tickets in them.

        • revenuenumber

          What they came to. With the currency's own decimals: 147.00 in EUR, 147 in JPY, 147.000 in KWD.

        • postsinteger (int32)

          Posts made from the kit.

      • attendeesobject

        Every attendee who shared, together.

        Show the fields
        • ambassadorsinteger (int32)

          How many shared.

        • clicksinteger (int32)

          Clicks.

        • ordersinteger (int32)

          Orders.

        • ticketsinteger (int32)

          Tickets.

        • revenuenumber

          Revenue. With the currency's own decimals: 147.00 in EUR, 147 in JPY, 147.000 in KWD.

    • 401 invalidKey, keyExpired, keyRevoked.
    • 403 missingScope.
    • 404 eventNotFound.
    • 409 moduleOff.
    • 429 rateLimited.

    Refusals

    invalidKey keyExpired keyRevoked rateLimited missingScope moduleOff eventNotFound

    Request

    curl "https://attendbeacon.com/api/v1/events/b3ac0000-0000-4000-8000-000000000001/share-kit/leaderboard?limit=2" \
      -H "Authorization: Bearer $ATTENDBEACON_KEY"

    200 Example answer

    JSON
    {
      "eventId": "b3ac0000-0000-4000-8000-000000000001",
      "currency": "EUR",
      "data": [
        {
          "rank": 1,
          "kind": "speaker",
          "name": "Ada Verhoeven",
          "code": "ADA150",
          "clicks": 447,
          "ordersByLink": 8,
          "ordersByCode": 0,
          "orders": 8,
          "tickets": 8,
          "revenue": 1580,
          "posts": 1
        },
        {
          "rank": 2,
          "kind": "sponsor",
          "name": "Northwind Cloud",
          "code": "NORTHWIND150",
          "clicks": 230,
          "ordersByLink": 5,
          "ordersByCode": 0,
          "orders": 5,
          "tickets": 5,
          "revenue": 395,
          "posts": 0
        }
      ],
      "attendees": {
        "ambassadors": 3,
        "clicks": 21,
        "orders": 0,
        "tickets": 0,
        "revenue": 0
      }
    }
    401 invalidKey, keyExpired, keyRevoked.
    JSON
    {
      "type": "https://attendbeacon.com/developers/errors#invalidKey",
      "title": "No working API key",
      "status": 401,
      "detail": "No key was sent, or it is not one this platform made. Send it as Authorization: Bearer abk_... or in X-Api-Key.",
      "instance": "/api/v1/events/b3ac0000-0000-4000-8000-000000000001/share-kit/leaderboard",
      "code": "invalidKey",
      "traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
      "error": "No key was sent, or it is not one this platform made. Send it as Authorization: Bearer abk_... or in X-Api-Key."
    }

    The guides and this site are in your language. The API reference's own descriptions are in English, as the API itself speaks.