POST
https://api.applivery.io/v1/organizations/{organizationSlug}/stores/{storeId}/otp-users
curl -X POST "https://api.applivery.io/v1/organizations/{organizationSlug}/stores/{storeId}/otp-users" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"allowedDownloadsNum": 0,
"publishedApplicationId": "string"
}'const response = await fetch("https://api.applivery.io/v1/organizations/{organizationSlug}/stores/{storeId}/otp-users", {
method: "POST",
headers: {
Authorization: "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"email": "[email protected]",
"allowedDownloadsNum": 0,
"publishedApplicationId": "string"
}),
});
const data = await response.json();import requests
response = requests.post(
"https://api.applivery.io/v1/organizations/{organizationSlug}/stores/{storeId}/otp-users",
headers={"Authorization": "Bearer <YOUR_API_KEY>"},
json={
"email": "[email protected]",
"allowedDownloadsNum": 0,
"publishedApplicationId": "string"
},
)
data = response.json()Request
Send your API key in the request header
authorization
Example:
Authorization: Bearer <token>
storeId
string
required
Body Params
application/json
email
any
required
allowedDownloadsNum
integer
required
publishedApplicationId
string
required
{
"email": "[email protected]",
"allowedDownloadsNum": 0,
"publishedApplicationId": "string"
}
Responses
200 Response
application/json
status
boolean
required
data
array [object]
required
id
string
required
organizationId
string
required
storeId
string
required
publishedApplicationId
string
required
email
string
required
allowedDownloadsNum
integer
required
lastLoginDate
string
required
lastDownloadDate
string
required
createdAt
string
required
updatedAt
string
required
{
"status": true,
"data": [
{
"id": "string",
"organizationId": "string",
"storeId": "string",
"publishedApplicationId": "string",
"email": "[email protected]",
"allowedDownloadsNum": 0,
"lastLoginDate": "string",
"lastDownloadDate": "string",
"createdAt": "string",
"updatedAt": "string"
}
]
}
400 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 6001,
"message": "Database Validation Error"
}
}
404 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}