Getting started

Rocket’s API is a JSON HTTPS API hosted at https://api.rocket.net. You authenticate by exchanging your username + password for a JWT, then sending that token on subsequent requests.

1) Get an Access Token (JWT)

cURL

If you have access to the `curl` command, call POST /v1/login with a JSON body containing username and password. The response contains a token.

curl -sS https://api.rocket.net/v1/login \
  -H "Content-Type: application/json" \
  -d '{
    "username": "you@example.com",
    "password": "your-password"
  }'

Example response:

{
  "token": "eyJhbGciOi..."
}

2) Use the JWT with other endpoints or MCP Clients

Most endpoints require the header Authorization: Bearer <token>. Here’s the simplest “first call” using GET /v1/sites.

TOKEN="eyJhbGciOi..."
curl -sS https://api.rocket.net/v1/sites \
  -H "Accept: application/json" \
  -H "Authorization: Bearer $TOKEN"


You can also use the access token with MCP Clients. More details: here

Token lifetime and refresh

Tokens expire every 7 days. If you get an HTTP 401 or an authentication error from your MCP client, re-run POST /v1/login to obtain a new JWT and retry the request.

Next