API Keys

An alternate way to access Telmai APIs using API Key.

All Telmai APIs can be executed either with OAuth access token or API keys. Use apis listed below to create a key. Use this key in the header of the Telmai APIs instead of the Authorization bearer token like this:

X-TLM-Key:{API Key}

Execute Authenticate API to retrieve access token for Authorization header used below

Tenant Id can be retrieved from the UI as listed here.

Retrieve API Keys for this tenant

GET https://demo.auth.telm.ai/auth/{tenant}/apiKeys

Path Parameters

Headers

{
    "keys": [
        {
            "id": "<id>",
            "name": "<api-key-name>",
            "key": "<api-key>"
        }
    ]
}

Add an API Key

POST https://demo.auth.telm.ai/auth/{tenant}/apiKeys

Path Parameters

Headers

Request Body

{
    "id": "<api-key-id>",
    "name": "<api-key-name>",
    "key": "<api-key>"
}

Get details of an API Key

GET https://demo.auth.telm.ai/auth/{{tenant}}/apiKeys/{{apiKeyId}}

Path Parameters

Headers

{
    "id": "<api-key-id>",
    "name": "<api-key-name>",
    "key": "<api-key>",
    "created_by": "string",
    "created_on": "string"
}

Delete an API Key

DELETE https://demo.auth.telm.ai/auth/{{tenant}}/apiKeys/{{apiKeyId}}

Path Parameters

Headers

{
  {
    "message": "API key was deleted successfully"
}

Last updated