Authentication and permissions

API keys, the header they travel in, what each permission allows, and what no key can do.

Download all as MarkdownOpenAPI

API keys

A key belongs to one SyncSeats account and to one mode. Its prefix says which: ssapi_live_ works on your account, ssapi_test_ on its sandbox. After the prefix come 43 random characters.

You create keys in the dashboard under Settings, Developers. A key is shown once, when it is created. SyncSeats keeps only a hash of it, so nobody can show it to you again: if you lose a key, revoke it and create a new one.

  • An account can have up to 10 keys in use for each mode.
  • A key can expire after 30, 90 or 365 days, or never.
  • Creating a live key asks for the code of your authenticator app and sends you a security email. A test key needs neither, since it reaches nothing real.

Send the key in the Authorization header of every request:

HTTP
Authorization: Bearer ssapi_test_...

That is the only place a key is read. A key in the address, in another header or in a cookie opens nothing. A request without a valid key gets 401 unauthorized:

JSON
{
	"error": {
		"code": "unauthorized",
		"message": "Send your API key in the Authorization header: \"Authorization: Bearer <key>\"."
	},
	"request_id": "req_8f3a1c5e7b9d2f4a6c8e0b1d"
}

A wrong key stays wrong, so do not send it again and again. After 60 refused sign-ins from one address in 5 minutes, further ones get 429 rate_limited instead.

Permissions

A key can do what it was given when it was created, and nothing else. No permission includes another.

PermissionWhat it allowsIn "Read only"In "Read and write"
listings:readSee your listings with their tickets, prices and marketplaces.yesyes
listings:writeCreate listings, also with a proof of purchase, change prices and seats, answer what a marketplace asks, put listings on sale, take them off sale and delete them.noyes
sales:readSee your sales with fees, payout amounts, delivery deadlines and charges.yesyes
sales:writeUpload the proof of transfer or the ticket files of a sale and send it for confirmation, as delivering in the dashboard does.noyes
recipients:readSee who the tickets of a sale go to: name, email and phone. Personal data, so it is its own permission.nono
payouts:readSee your balance, your payouts with the sales each one covers, and payment requests.yesyes
inventory:readSee your ticket purchases with what they cost and what they sold for.yesyes
inventory:writeRecord, change and delete ticket purchases and sales outside SyncSeats.noyes

The dashboard offers two sets, Read only and Read and write, and a tick of its own for recipients:read, because it shows personal data of buyers.

A key keeps the permissions it was created with, even when a set gains one later. sales:write, which delivers sales, joined Read and write after the first keys were made: a key from before does not have it. So did the permissions of the inventory: inventory:read joined both sets, inventory:write joined Read and write. To deliver or to reach the inventory through the API, create a new key and retire the old one.

The events of the catalog, your marketplaces and the listing options need no permission: every valid key can read them.

A request without the permission its endpoint needs gets 403 insufficient_scope, and details.required names the permission:

JSON
{
	"error": {
		"code": "insufficient_scope",
		"message": "This key lacks the permission \"listings:write\". Create a key that has it on SyncSeats under Settings, Developers.",
		"details": { "required": "listings:write" }
	},
	"request_id": "req_8f3a1c5e7b9d2f4a6c8e0b1d"
}

GET /v1/me lists what a key was given under scopes and what it can use right now under usable_scopes. Under account it also says whether your identity is verified, and in account.display_currency the currency your dashboard shows amounts in: USD, EUR or GBP.

A verified identity for live changes

Changing listings and delivering sales with a live key needs a verified identity on SyncSeats, as it does in the dashboard. Until then the key reads, and a change or a delivery gets 403 kyc_required. In GET /v1/me, listings:write and sales:write are then under scopes but not under usable_scopes.

JSON
{
	"error": {
		"code": "kyc_required",
		"message": "Changing listings with a live key needs a verified identity. Verify it on SyncSeats first."
	},
	"request_id": "req_8f3a1c5e7b9d2f4a6c8e0b1d"
}

The inventory needs none: inventory:write works with a live key before your identity is verified, since a purchase you record reaches no marketplace. The one exception is the purchase on the entry of a listing, which becomes the listing’s cost: changing its amount or date also takes listings:write, and with a live key a verified identity. Test keys are not affected either: the sandbox needs no verified identity.

What no key can do

Some things only you can do, signed in to the dashboard, whatever a key was given:

  • Request a payout.
  • See or change bank details and tax details.
  • Change the password or the two-factor authentication.
  • Verify your identity.
  • Write to support.
  • Create or revoke API keys, and add or change webhook endpoints.
  • See anything of another account. A key works on the account it belongs to, and no parameter changes that.

When keys stop working

You can revoke a key in the dashboard whenever you like. It stops working at once.

SyncSeats ends every key of an account when its password is reset or changed, when its authenticator is replaced, and when the account is suspended. Its webhook endpoints are switched off with them. Create new keys afterwards.

The account is looked at on every request. If it is not active, its setup is unfinished or two-factor authentication is off, requests get 403 account_unavailable. If the Seller API is not switched on for the account, they get 403 api_not_enabled.

Keys belong on a server

The API sends no CORS headers, so a web page in a browser cannot read its answers. That is on purpose: a key in a web page or in an app on a phone can be read by everyone who has it. Keep keys on your server, and let your own front end talk to your own back end.

  • Give each system its own key, with only the permissions it needs.
  • Keep keys out of source code. Read them from the environment or from a secret store.
  • Set an expiry for the keys of tools you use for a short while.
  • Revoke a key as soon as you think someone else has seen it. The prefix helps secret scanners find a key that slipped into a repository.

Next: Test mode and the sandbox explains what a test key works on.