Get account (login)

Verify Api Key Validity

Description

This route is used to verify API key validity and retrieve account information. It serves as a gateway for users to authenticate their API keys and retrieve essential account details.

Endpoint

GET https://sentry.aleno.ai/account

Query parameters

No query parameters.

CURL example

curl -X GET \
  https://sentry.aleno.ai/account \
  -H 'accept: application/json' \
  -H 'Authorization: YOUR_API_KEY' 

Result

If the API key is valid you will be able to retrieve all the information related to your account as described here:

NameTypeDescription

id

string

Youir account id.

accountName

string

Your account name.

alertOutputs

The configuration details of the endpoints where the account is set to receive data alerts.

apiKeyHash

string

The hash of your API Key.

apiKeyExpirationTimestamp

number

Unix timestamp after which you API will expire.

createdAt

Date

The date when the account was created.

updatedAt

Date

The date when the account was last updated.

{
   "message": "authorized",
   "data":{
      "id": "1a34eac9-f7e2-4ee6-9f95-b22fc4e81d31",
      "accountName": "YOUR_ACCOUNT_NAME",
      "alertOutputs":{
         "telegramChannelId":"-XXXXXXXXXX"
      },
      "apiKeyHash": "a48d3cdb4a1e8c8607751adc736f24ac0fcc3f440c9af76b2f0b3de3016623be",
      "apiKeyExpirationTimestamp": "1804336525",
      "createdAt": "2024-04-05T17:02:05.809Z",
      "updatedAt": "2024-05-04T10:42:16.325Z"
   }
}

Last updated