Skip to main content
Create a session in Rawchunks through SESSION, following the session walkthrough. Use that session’s full token as the bearer credential for paid API calls. All music requests go to https://api.rawchunks.space. The examples use Node.js 20 or later and native fetch.

Request headers

Use the same address in request fields such as creatorAddress, creator and userAddress. EVM identities are normalized to lowercase; Solana addresses are case-sensitive.

Reuse the request headers

Define this small request helper in your integration. The following guides use api and userAddress from this block.
Keep the token in your server’s secret configuration. It authorizes spending within the session cap until expiration or revocation. Your product still needs its own user authentication.

Check connectivity

Endpoint examples also use curl and jq. Set USER_ADDRESS, NETWORK, SESSION_TOKEN and the returned resource IDs to your own values. See session payments for fees and job handling before adding retries.