Skip to main content
Fleetwork
Fleetwork

Contact us

We look forward to hearing from you. Please fill out the form below.

APIIntroduction

Authentication

How to authenticate API requests using an API Key with Fleetwork.

API Key Format

Fleetwork API Keys are 48-character hex strings:

Text
a3f92c1d8b0e5f7a29d4c6e1b8f03a7d2c9e5b1f4a8d3c6e

How to Authenticate

Pass your API Key via the API-KEY HTTP header:

Shell
curl -X GET \
  "https://live.fleetwork.vn/api/v1/workspace/jobs" \
  -H "API-KEY: a3f92c1d8b0e5f7a29d4c6e1b8f03a7d2c9e5b1f4a8d3c6e"

JavaScript Example

JavaScript
const apiKey = "a3f92c1d8b0e5f7a29d4c6e1b8f03a7d2c9e5b1f4a8d3c6e";

const response = await fetch(
  "https://live.fleetwork.vn/api/v1/workspace/jobs",
  {
    headers: {
      "API-KEY": apiKey,
      "Content-Type": "application/json",
    },
  },
);

const data = await response.json();

Environment Types

ValueEnvironment
1Development
2Production

Keys can be restricted to a specific environment. A Production key cannot be used against the Development environment and vice versa.