Your tenant
Every account and API key belongs to a tenant. Your tenant is created when you sign up, and you act as it whenever you call the API with one of your keys. Your tenant ID is shown on the DevTools page of the Plurex web app, next to your API keys.Create an API key
1
Open DevTools
Log in to the web app and open DevTools.
2
Create the key
Under API Keys, choose + API Key and give the key a label that says where you will use it, such as
research-server. If you have two-factor authentication turned on, enter your one-time code when asked.3
Save the key and secret
The app shows the Key and the Secret. Store both somewhere safe, such as a secrets manager. This is the
only time the secret is shown; if you lose it, delete the key and create a new one.
Authenticate a request
Every operation is aPOST to https://api.plurex.io/api/v1/... with a JSON body. Send your key and secret in two
headers:
Both are required. A request with only one of them is treated as unauthenticated.
Public operations
These operations need no key, so you can explore markets and hosts before you sign up.
Every other operation, including all paper operations, needs both headers.
Tenant ID or account ID
Operations that create or list accounts work across your tenant, so they take atenantId:
Every other authenticated operation acts on one account and takes an accountId. Plurex checks that the account
belongs to the tenant your key acts for.
Authentication errors
Authentication is checked before the request body, so a request with bad credentials returns 401 even if its body is
also invalid. See Errors for every error code.
Streams
The account streams use the same headers. SendX-API-KEY and X-API-SECRET with the WebSocket upgrade request: