Page tree
Skip to end of metadata
Go to start of metadata

Overview

The Create API Key API creates a new API token, which will be listed in AMP. 

You can use the Get API Key API to find the users ID (id). 

Sample request

POST https://api.armor.com/users/2/keys
{ 
    "Name": "API Key_John"
}

Input

The following table describes the different parts of this API call: 

API Call / URLMethod / Type
/apps/{appId}/tiers POST

The following table describes the parameter (or parameters) for this API call:

ParameterDescriptionRequired or optionalTypeExample
(user) idThe ID of the user accountRequiredInteger2
NameA descriptive name for the API keyRequiredTextAPI Key_John



Sample return

StatusResponse
200
{
   "id": "da718de8-9a2f-4031-be36-589c0eb543a4",
   "apiKey": "7IJbf2yjOwxlZRgbWpnnVrtuGKG736vB3JhxtKVmzHU=",
   "name": "Test_HarshKey"
}

  • No labels