Skip to main content
A relying party sets the tokens XBOX services issue a game for one of your web services: their audience, the claims they carry, how long they last, and the certificate they’re encrypted to. When a game asks for a token for a URL that its title’s single sign-on endpoints map to a relying party, XBOX services issue a token for that relying party. xbox xbl relying-party lists, gets, creates, and saves the relying parties of a seller account. Reading them needs the Partner Center Relying parties Read permission, and creating or saving them needs Relying parties Write. Like every xbl command, these commands are Experimental: their options and output might change or be removed. See Experimental commands.
create registers the relying party’s name across XBOX services at once, before you publish. Nobody can rename, delete, or reuse it, and its business partner can’t be changed.
create and save change the account’s draft. Players’ tokens change only after you publish it with xbl config publish --scope account. For how a web service uses relying parties, see Setting up web services at Partner Center in the XBOX developer documentation. To map the URLs your game calls to a relying party, see Single sign-on endpoints.

Make the encryption certificate

Your service decrypts its tokens with the certificate’s private key, which stays with your service. create and save take only the public certificate, DER or PEM. They refuse a file that holds a private key, such as a .pfx, before they send anything. For example, OpenSSL writes a new private key to rp-key.pem, protected by a pass phrase it asks for, and its public certificate to rp.cer:

Options

save changes only the settings you pass, and needs at least one of them.

Claims

A claim is a claim type URI, such as http://schemas.microsoft.com/xbox/2011/07/claims/user/gamertag, as relying-party get lists them. XBOX services refuse a claim the business partner’s type doesn’t allow. The claims every relying party carries, such as the user’s age group, are always added. With --claim, create gives the relying party only the claims you pass. Without it, create gives it the claims Partner Center selects for its business partner’s type, which business-partner list shows: Partner Center doesn’t recommend the User Pairwise ID (upi) claim, http://schemas.microsoft.com/xbox/2013/03/claims/user/pwid. Use the Partner XBOX user ID (ptx) claim, http://schemas.microsoft.com/xbox/2011/07/claims/user/pxuid, instead.
On save, the claims you pass replace all of the relying party’s claims. A claim you don’t pass again is removed, so pass every claim it should carry.
For example, if relying-party get lists only the delegation token claim besides the ones every relying party carries, this keeps it and adds the gamertag claim:
To keep only the claims every relying party carries, pass one of them, such as --claim http://schemas.microsoft.com/xbox/2011/07/claims/user/agegroup.

Examples

List the account’s relying parties:
Create a relying party for api.nodpublishers.com, with tokens encrypted to rp.cer:
Change its tokens’ lifetime to 4 hours:
Replace its certificate:
Then publish the account’s configuration, so players’ tokens change:

Output

get, create, and save write the relying party:
list writes them as an array, by name. They come from the account’s draft, so they include changes that aren’t published yet; config status --scope account shows what isn’t. The table shows NAME, BUSINESS PARTNER ID, LIFETIME HOURS, and CERTIFICATE EXPIRES, the date the certificate expires. On stderr, create and save say how to publish the change:
Before that line, they warn when the relying party’s tokens don’t carry a jku header, or when it carries the upi claim, as Partner Center’s relying party page does.

Exit codes

Errors

A refused request exits 1 and writes a JSON error to stderr, as Errors describes. These are the ones you’re most likely to see: A save also fails with HTTP 409 when the relying party changed while it ran. Run it again.
Last modified on November 25, 2026