/endpointsRegister device endpoint
Base URL https://api.vseepreview.com/api_v3
Authentication: User Token — Requires a user access token from login or SSO.
Register a new device for push notifications
Register a device for push notifications.
Parameters:
key — Device token (for Apple) or registration ID (for Android)type — 30 for Apple Push Notification, 40 for Google Cloud Messaging| Name | In | Type | Required | Enum | Default | Description |
|---|---|---|---|---|---|---|
X-ApiToken | header | string | yes | API token (e.g. your_api_token) |
Content type: application/x-www-form-urlencoded
| Field | Type | Required | Enum | Description |
|---|---|---|---|---|
key | string | yes | Device token (Apple) or registration ID (Android) | |
type | integer | yes | Device type: 30=APNS (Apple), 40=GCM (Google) |
Example:
{
"key": "string",
"type": 0
}
200 — Successful registrationDevice Registered
{
"data": {
"id": "551c5f64-a6d8-425d-b89c-581fac1f0144",
"key": "123456",
"user_id": "201",
"type": 30,
"created": 1427922788,
"modified": 1427922788
}
}
Machine-readable: OpenAPI JSON