🛡️
Shield API
  • Introduction
  • Functional overview
  • Data Dictionary
  • Authorization
    • Auth API Overview
    • Authorization management
  • Policies
    • Policies API Overview
    • Policy management
    • User management
      • User creation examples
    • Risk Item management
      • Risk item creation examples
      • Risk Item Asset Management
    • Subscriptions
  • Claims
    • Claims Overview
    • Claims Management
      • Claim Creation Examples
      • Claims Asset Management
    • Workflows Management
  • Integrations
    • Authorization
    • Webhooks configuration
    • Fetch Risk items
    • Fetch Claims
    • Fetch Orders
  • Links & Resources
Powered by GitBook
On this page
  • Endpoints
  • Access token
  • Authorize channel to use API
  • Refresh access token
  1. Authorization

Authorization management

Endpoints

Method
Endpoint

GET

Access token

Get an accessToken to start using the Shield API

Authorize channel to use API

GET https://app.insurehero.io/api/shield/v1/auth/authorize

You will need an authorization token to send requests to the integrations API.

Each token has a lifespan of 1 hour.

Headers

Name
Type
Description

x-api-key*

string

Your integrations api key

Example Response

{
    data: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.."; // accessToken
}
{
    "error": "Request contains malformed data",
    "details": "Bad Request Missing x-api-key header"
}
{
    "error": "Invalid or expired access token",
    "details": "Invalid api key"
}
{
    "error": "API ratelimit exceeded",
    "details": "Too Many Requests API rate limit exceeded"
}
{
    "error": "Pending payment",
    "details": "Payment Required Pending payment"
}

Attributes

Name
Description

data

Access token used for authentication and API requests

x-api-key

A unique key assigned to each channel, used for authentication and authorization in API requests

Refresh access token

Each accessToken comes with a 1 hour lifespan. This means, you will need to check before each API call wether your accessToken is still valid.

  • If the token is still valid: We recommend at least 5 minutes remaining. If it is valid, continue making request.

  • If the token is expired or close to: We recommend if it has less than 5 minutes remaining or is already expired, then call the authorize endpoint to request a fresh accessToken.

PreviousAuth API OverviewNextPolicies

Last updated 3 months ago

https://app.insurehero.io/api/shield/v1/auth/authorize