Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get an API Key

Use it to authenticate Core API requests.

Generate an API key from the Trustless Work Backoffice.

Open Trustless Work Backoffice

1

Connect your wallet

Open the Backoffice and select Connect wallet.

Approve the connection in your wallet when prompted.

2

Open API Keys

In the left sidebar, select API Keys.

3

Generate your key

Select Generate API Key to create a new key.

Copy the key immediately and store it in your secret manager.

Authenticate API requests

Send the generated key with each authenticated request:

x-api-key: <id>.<secret>

JavaScript example

Use your API key in the x-api-key header for authenticated requests:

const apiKey = "<id>.<secret>";

const response = await fetch("TW_URL", {
  headers: {
    "x-api-key": apiKey,
  },
});

if (!response.ok) {
  throw new Error(`Request failed: ${response.status}`);
}

const escrows = await response.json();
console.log(escrows);

Last updated