Skip to main content
POST
/
api
/
system
/
device-tokens
Register or remove a device token
curl --request POST \
  --url https://api.propops.app/api/system/device-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "register",
  "csrf_token": "abc123def456",
  "device_token": "device_token_001",
  "platform": "ios"
}
'
{
  "success": true,
  "message": "Operation completed successfully"
}

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Authorization: Bearer a1b2c3d4e5f6...

Body

application/json
action
enum<string>
required
Available options:
register,
remove
csrf_token
string
required
Example:

"abc123def456"

device_token
string
Example:

"device_token_001"

platform
enum<string>
Available options:
ios,
android,
web
Example:

"ios"

Response

Device token registered or removed

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"