← Back to Documentation

Get All API Keys

GET /apikeys

Overview

This endpoint retrieves all API keys associated with the authenticated user's account. API keys are used to authenticate requests to the FluxRPC service, which provides the fastest RPC endpoints for the Solana blockchain.

Base URL

https://api.fluxbeam.xyz

Request

Endpoint

GET /apikeys

Headers

Name Required Description
Authorization Yes Bearer {token}
Content-Type Yes application/json

Query Parameters

Parameter Type Required Description
type string No Filter by service type

Example Request

curl -X GET "https://api.fluxbeam.xyz/apikeys?type=solana" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
  -H "Content-Type: application/json"

Response

Success Response (200 OK)

{
  "success": true,
  "data": [
    {
      "id": "api-key-uuid-1",
      "name": "My Production API Key",
      "masked_key": "flux_••••••••••••••••••••••••••••••",
      "created_at": 1695432000000,
      "updated_at": 1695432000000,
      "last_used": 1695518400000,
      "type": "solana",
      "status": "active",
      "permissions": ["read", "write"],
      "rate_limit": 100
    },
    {
      "id": "api-key-uuid-2",
      "name": "My Development API Key",
      "masked_key": "flux_••••••••••••••••••••••••••••••",
      "created_at": 1695345600000,
      "updated_at": 1695345600000,
      "last_used": 1695518400000,
      "type": "solana",
      "status": "active",
      "permissions": ["read"],
      "rate_limit": 50
    }
  ]
}

Error Responses

401 Unauthorized

{
  "success": false,
  "error": "Invalid or expired token"
}

403 Forbidden

{
  "success": false,
  "error": "Insufficient permissions to access API keys"
}

500 Internal Server Error

{
  "success": false,
  "error": "An unexpected error occurred"
}

Response Fields

Field Type Description
id string Unique identifier for the API key
name string User-defined name for the API key
masked_key string Partially masked API key for display purposes
created_at number Timestamp when the API key was created (Unix timestamp in milliseconds)
updated_at number Timestamp when the API key was last updated (Unix timestamp in milliseconds)
last_used number Timestamp when the API key was last used (Unix timestamp in milliseconds)
type string Service type for the API key (e.g., "solana")
status string Current status of the API key ("active", "inactive", "revoked")
permissions array Array of permission strings for the API key
rate_limit number Rate limit for the API key (requests per second)

Usage Notes