Table Of Contents

Third Party Integration by Unique Code

Third Party Integration by Unique Code

This document outlines the procedure for third-party platforms to securely generate an API Key, which is essential for making subsequent authorized requests to the Hyros platform.

Prerequisites

A unique integration code must be provided by Hyros before making the request.

Request

Here’s the API endpoint you’ll be communicating with. This endpoint only receives POST method requests.

[POST] https://api.hyros.com/v1/api/v1.0/external-integration/api-keys

Payload

Your payload would look like the following.

{ “name”: “My API Key 001”, “code”: “YOUR_CODE” }

PropertyFormatRequiredDescription
namestringYESThe name you want to assign to the API Key.
codestringYESA unique code provided by Hyros.
Note: This code is only valid for 5 minutes after issuance

Response

When you get a positive response, it will look like the following, it contains the newly generated API Key and relevant data.

{ “id”: 1, “name”: “My API Key 001”, “key”: “YOUR_API_KEY”, “creationDate”: 1762783729668, “lastUpdateDate”: 1762783729668, “status”: “ENABLED”, “email”: “username@hyros.com”, “roles”: [ “API_ROLE_1”, “API_ROLE_2”, “API_ROLE_3”, … ] }

PropertyFormatDescription
idintegerThe unique identifier for the newly created API Key record.
namestringThe name assigned to the API Key.
keystringThe securely generated API Key. This key must be used in all subsequent authorized requests to the Hyros platform.
creationDateinteger (timestamp)The timestamp (in milliseconds) when the API Key was created.
lastUpdateDateinteger (timestamp)The timestamp (in milliseconds) when the API Key was last updated.
statusstringThe current status of the API Key (e.g., “ENABLED”).
emailstringThe email address associated with the Hyros account that provisioned the unique code.
rolesarray of stringsA list of roles granted to this specific API Key, determining what actions can be performed when using it.

Note: The generated key (API Key) should be stored securely by the third-party platform and treated as a sensitive credential.