Toggle Developers
HomeAcademy
  • Welcome
  • GraphQL
    • Getting started
    • Exploring our API
    • Authentication
    • API playground
    • Error handling
  • Key concepts
    • Overview
      • Orders, Transactions & Line Items
      • Card number formats
  • Basics
    • Create a card
    • Check a card balance
    • Redeem a card
  • Webhooks
    • Overview
      • Getting started
      • Authentication & responses
    • Events
      • Card.balance_adjusted
      • Card.card_reference_updated
      • Card.expiry_reminder
      • Card.registered
      • Card.send_recipient_email
      • Card.resend_recipient_email
      • Order.created
      • Order.cancelled
      • Order.send_receipt_email
      • Order.send_cancellation_email
      • Payment.failed
      • Payment.review_opened
      • Fulfilment.dispatched
  • Partner Guides
    • EPOS & Ordering
      • Overview
      • Accreditation
      • Configuration variables
      • Playground examples
      • Physical card orders
      • Custom validity rules
      • Balance check
      • Redemptions & top-ups
      • Reversals
    • Guest gratuity
      • Overview
      • Accreditation
      • Configuration variables
      • Playground examples
      • Creating a card
      • Cancelling a card
      • Register a card
    • CRM
      • Overview
      • Historic data via GraphQL
      • Real time data via webhooks
Powered by GitBook
On this page
  1. GraphQL

API playground

PreviousAuthenticationNextError handling

Last updated 3 years ago

Once you are ready to dive in, and you have a working API username/password, our API playground can be used to pass in your bearer token to make real requests to protected queries and mutations.

Our API playground:

Using our playground to build the queries and mutations you are going to need before heading into the code within your application can be a useful and quick way to model your solution architecture.

Alternatively, we also recommend as a desktop client.

Retrieving your bearer token using the Playground

To retrieve your bearer token in the Playground, you'll need to open your browser network inspector and grab the token from the authorization header once you've made a call to the login query:

https://api.mytoggle.io/graphql-playground
Insomnia