POST
/
user
/
apikey
Generate API Key
curl --request POST \
  --url https://staging-api.getpartna.com/v4/user/apikey \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-api-user: <api-key>' \
  --data '{
  "apikey": "",
  "expirationInMonths": 0,
  "keyname": "",
  "otp": "",
  "scope": ""
}'
{
  "data": {
    "apikey": "1--M--3c1fc953f34f432589df37371d4a3fb1--1776081443040--2bacd10c"
  },
  "message": "success"
}

Authorizations

x-api-key
string
header
required
x-api-user
string
header
required

Body

application/json
keyname
string
required

key identifier of the user's choice

scope
string
required

permission level of the apiKey; get api key scopes to see valid scopes; use M for a master key; G for a get only key; W for a withdrawal permitted key; and N for a no withdrawal key

apikey
string

supplied if there's an existing api key that needs to be deleted

expirationInMonths
number
otp
string

Response

post user apikey ok

data
object
message
string