Authentication

The Pump.fun Trading API uses API keys to authenticate requests. You can generate and manage your API keys in your account dashboard.

Your API key is a secret key that you can use to authenticate requests to the API. It is not shared with anyone else. It provides access to all endpoints depending on your account tier.

Your API keys grant significant access to your account. Never share them in public repositories, client-side code, or untrusted environments. If you suspect your key is compromised, revoke it immediately and generate a new one.

All API requests must be made over HTTPS. Requests over plain HTTP will be rejected.

Unauthenticated requests will receive a 401 Unauthorized error.

To authenticate a request, include your secret API key in the 'x-api-key' header.

Authentication Header

x-api-key: <your-api-key>

Example Requests

Node
Curl
Axios
1 2 3 4 5 6 7 import { PumpApiClient } from 'tradepumpfun'; const client = new PumpApiClient({ apiKey: '<your-api-key>' }); await client.ping();

Unauthenticated Response

json
{ "message": "Invalid API key", "error": "Unauthorized", "statusCode": 401 }