This API call retrieves OTP History records based on the specified input parameters.

Examples

Example 1
Fetch all OTP history records ordered by profile_id.

curl --request POST \
--url https://external-api.xtremepush.com/api/external/list/otp-history \
--header 'Content-Type: application/json' \
--data '{
  "apptoken": "YOUR_APPTOKEN",
  "order": ["profile_id"]
}'

Example 2

Retrieve OTP history for a specific user identified by profile_id.

curl --request POST \
--url https://external-api.xtremepush.com/api/external/list/otp-history \
--header 'Content-Type: application/json' \
--data '{
  "apptoken": "YOUR_APPTOKEN",
  "condition": [["profile_id", "=", "profileId"]]
}'

Example 3

Retrieve all OTP history records, sorted by the time of request (request_ts) in descending order.

curl --request POST \
--url https://external-api.xtremepush.com/api/external/list/otp-history \
--header 'Content-Type: application/json' \
--data '{
  "apptoken": "YOUR_APPTOKEN",
  "order": ["request_ts DESC"]
}'
Language
Click Try It! to start a request and see the response here!