Beta

The Partner Trading API v1 is in beta — endpoints and response shapes may still change.

Developers
Cru World Wine
API v1 · REST & MCP
Account

Test authentication

Confirm that your credentials work and see the account, market, currency, permissions and expiry they carry.

GET/pingLIVE
Required scopemeta:readAuthentication requiredTry it
A simple first request

This authenticated check returns your credential details without exposing any trading data.

How this call works

3 STEPS
  1. Your server

    Send both credential headers

    GET/ping

    CLIENT-KEY and CLIENT-SECRET on an HTTPS request. There is no token exchange and no session to establish first. A connected app sends its bearer token instead.

  2. Cru

    Cru identifies the credential

    The hostname decides which market the credential is being used against, so a credential restricted to other markets is refused here too, with AUTH_STORE_NOT_ALLOWED.

  3. Your server

    Check scopes and expiry before anything else

    A 200 means the credential works. Read client.scopes to confirm it can do what your integration needs, and client.expires_at to find out whether it will still work next month.

    KEEPclient.scopes, client.expires_at, client.currency

Request parameters

This endpoint takes no query or body parameters. Send your credentials with it: the two authentication headers, or a connected app’s bearer token.

Response fields

200 OK

Fields returned in the data object.

pongboolean

Always true on success.

client.environmentstring

live on production, test everywhere else.

client.key_prefixstring | null

The start of the client key that called, such as cru_live_ABCD... Null for a connected app.

client.organisationstring | null

The account the credential acts for.

client.labelstring | null

The credential’s label, or the connected app’s registered name.

client.marketstring

The market you called, such as uk.

client.currencystring

ISO 4217 currency prices are quoted in on this market.

client.scopesarray<string>

The scopes granted.

client.expires_atdatetime | null

When the credential expires, or null if it does not. For a connected app, when the access token expires.

Errors

Missing or invalid credentials return AUTH_INVALID_CREDENTIALS / 401. A credential without meta:read gets AUTH_INSUFFICIENT_SCOPE / 403. View all error codes →

UP NEXT List market bids

API credentials

Enter the client key and secret issued by Cru. They are kept for this browser tab’s session — a reload keeps them, closing the tab or clearing them ends them.

Credentials are never included in copied examples, and are redacted from anything the console prints back.

Request API access

Tell us who you are and what you want to build. Cru issues a client key and secret for your organisation, scoped to what you need.

Markets you trade in (choose one or more)

We use what you send here to reply about API access, and for nothing else. Cloudflare Turnstile checks the form for bots (privacy policy).