Universal Header

The Universal Header is an essential part of the authentication process in our API. It ties together applications and users, granting or denying access based on the provided company API key.

The Authorization Header

This authorization header uses the Bearer token scheme and consists of the following key-value pair:

Properties

  • Name
    Authorization
    Type
    string
    Description

    The authorization header value, constructed as Bearer ${api-key}.


Usage

Every request to our API endpoints must include this Universal Header to authenticate a company's API key. This ensures that applications and users are properly tied to the company, maintaining a secure connection.

Example Code Snippet

fetch('https://app.wranglejobs.com/api/endpoint', {
  method: "POST",
  headers: {
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${api-key}`
  }
});

Was this page helpful?