Skip to main content
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": "",
  "expirationInDays": 0,
  "expirationInMonths": 0,
  "keyname": "",
  "otp": "",
  "scope": ""
}
'
{
  "data": {
    "apikey": "1--M--4fca371417414423ace78dc730b46e81--1781793658613--3677a356"
  },
  "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

expirationInDays
number
expirationInMonths
number
otp
string

Response

post user apikey ok

data
object
message
string