Download OpenAPI specification:
REST API Documentation for the Autoliv Safety Platform REST API
Add event notification with grace period timer. For DEPLOY event: The notification will be scheduled with a grace period timer and will be sent after the grace period to emergency contacts. For non-DEPLOY events: The notification will be added to the database without a grace period timer.
| eventId required | string (Eventid) |
| eventType required | string (EventType) Enum: "DEPLOY" "NEAR_DEPLOY" "NEAR_OTHER_EVENT" "OTHER_EVENT" Enumeration of possible event types for crash notifications. |
GeoLocation (object) or (string or null) Default: null |
{- "eventId": "string",
- "eventType": "DEPLOY",
- "geoLocation": null
}{- "gracePeriodStartedSuccess": true,
- "gracePeriodStatus": "Started",
- "gracePeriodStartTimeUnix": 0,
- "gracePeriodDuration": 0
}Generate a SAS token for downloading a blob with 1 hour expiry
| blobPath required | string (Blobpath) Path to the blob in storage |
{- "blobPath": "string"
}{- "sasToken": "string",
- "expiresAt": "2019-08-24T14:15:22Z"
}Test endpoint to send a single SMS message directly.
| phoneNumber required | string (Phonenumber) Phone number to send SMS to |
| name required | string (Name) Name of the recipient |
| message required | string (Message) Message to send |
{- "phoneNumber": "string",
- "name": "string",
- "message": "string"
}Add event notification with grace period timer. For DEPLOY event: The notification will be scheduled with a grace period timer and will be sent after the grace period to emergency contacts. For non-DEPLOY events: The notification will be added to the database without a grace period timer.
| eventId required | string (Eventid) |
| eventType required | string (EventType) Enum: "DEPLOY" "NEAR_DEPLOY" "NEAR_OTHER_EVENT" "OTHER_EVENT" Enumeration of possible event types for crash notifications. |
GeoLocation (object) or (string or null) Default: null |
{- "eventId": "string",
- "eventType": "DEPLOY",
- "geoLocation": null
}{- "gracePeriodStatus": "Started",
- "gracePeriodStartTimeUnix": 0,
- "gracePeriodDuration": 0
}Authenticates a user with Google or Apple ID token and returns Autoliv access and refresh tokens.
Note: This endpoint does not require authentication. This endpoint also validates token signatures.
| id_token required | string (Id Token) |
| provider required | string (Provider) |
{- "id_token": "string",
- "provider": "string"
}{- "access_token": "string",
- "refresh_token": "string",
- "token_type": "Bearer",
- "expires_in": 0,
- "organization_name": null
}Uses a refresh token to generate a new access token. The refresh token is single-use and will be invalidated after use.
| refresh_token required | string (Refresh Token) |
{- "refresh_token": "string"
}{- "access_token": "string",
- "refresh_token": "string",
- "token_type": "Bearer",
- "expires_in": 0
}Get the FOTA update information for a device
| deviceId required | string Device ID |
| firmwareVersion | string Firmware version of the ECU |
{- "nextVersion": null,
- "isUpdateAvailable": true,
- "description": null
}Get a list of all available firmware versions
{- "firmwareVersions": [
- {
- "id": 0,
- "version": "string",
- "requiredVersionIdentifier": null,
- "filePath": null,
- "releaseDate": "2019-08-24T14:15:22Z",
- "description": null,
- "uploadedBy": null,
- "createdAt": null
}
]
}Upload a firmware file and store metadata in database
| version | string Firmware version |
| releaseDate | string <DateTime> Release date of the firmware |
| description | string Description of the firmware |
| requiredVersionIdentifier | integer Required version ID to upgrade from (optional) |
The firmware file binary data
{- "id": 0,
- "version": "string",
- "releaseDate": "2019-08-24T14:15:22Z",
- "filePath": "string",
- "description": "string",
- "requiredVersionIdentifier": null,
- "uploadedBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "message": "string"
}Updates device information and assigns it to current user or creates new device if it doesn't exist
| deviceId required | string Device id |
| numberOfInflations required | integer (Numberofinflations) |
| numberOfMaxInflations required | integer (Numberofmaxinflations) |
| productActivationState required | string (ProductActivationState) Enum: "active" "inactive" Enumeration of possible product activation states |
| minutesOfUsage required | integer (Minutesofusage) |
| deployedState required | string (DeployedState) Enum: "deployed" "not_deployed" Enumeration of possible deployed states for the device |
| firmwareVersion required | string (Firmwareversion) |
{- "numberOfInflations": 0,
- "numberOfMaxInflations": 0,
- "productActivationState": "active",
- "minutesOfUsage": 0,
- "deployedState": "deployed",
- "firmwareVersion": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Retrieves a list of all devices in the system
{- "devices": [
- {
- "deviceId": "string",
- "hardwareVersion": null,
- "firmwareVersion": null,
- "latestAvailableVersion": null,
- "numberOfInflations": 0,
- "numberOfMaxInflations": 0,
- "productActivationState": "inactive",
- "minutesOfUsage": 0,
- "deployedState": "not_deployed",
- "isUpdateAvailable": null,
- "createdAt": "2019-08-24T14:15:22Z",
- "lastActivity": null,
- "usersDevices": [ ]
}
], - "count": 0
}Associates an inflator with the current user's device
| inflatorId required | string (Inflatorid) |
{- "inflatorId": "string"
}{- "message": "string"
}delete the information of a user's ICE contact information.
| contactIds required | string The contact ids |
[- {
- "contactName": "string",
- "phoneNumber": "string",
- "preferredLanguage": null,
- "userId": null,
- "emergencyContactId": null,
- "createdAt": null
}
]Gets the information of a user's ICE contact details.
[- {
- "contactName": "string",
- "phoneNumber": "string",
- "preferredLanguage": null,
- "userId": null,
- "emergencyContactId": null,
- "createdAt": null
}
]Add the information of a user's ICE (In Case of Emergency) contact information. Users can have up to 3 emergency contacts.
| contactName required | string (Contactname) |
| phoneNumber required | string (Phonenumber) |
Preferredlanguage (string) or (Preferredlanguage (string or null)) (Preferredlanguage) Default: null |
[- {
- "contactName": "string",
- "phoneNumber": "string",
- "preferredLanguage": null
}
][- {
- "contactName": "string",
- "phoneNumber": "string",
- "preferredLanguage": null,
- "userId": null,
- "emergencyContactId": null,
- "createdAt": null
}
]Creates an internal portal comment for a user, event, device, or firmware version. Any authenticated portal user can create comments. To create a reply, include the parent comment id in the request.
| targetType required | string (CommentTargetType) Enum: "User" "Event" "Device" "FirmwareVersion" Allowed comment target types. |
| targetId required | string (Targetid) [ 1 .. 100 ] characters |
Parentcommentid (string) or (Parentcommentid (string or null)) (Parentcommentid) Default: null | |
| body required | string (Body) non-empty |
{- "targetType": "User",
- "targetId": "string",
- "parentCommentId": null,
- "body": "string"
}{- "commentId": "ee0469af-2fa1-4b7e-b5f1-8e711a95821b",
- "targetType": "User",
- "targetId": "string",
- "parentCommentId": null,
- "authorId": "string",
- "authorName": "string",
- "body": null,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": null,
- "deletedAt": null
}Updates the body of an active portal comment. SafetyPortal.Admin users can update any comment. Other portal users can only update their own comments.
| commentId required | string Comment id. |
| body required | string (Body) non-empty |
{- "body": "string"
}{- "commentId": "ee0469af-2fa1-4b7e-b5f1-8e711a95821b",
- "targetType": "User",
- "targetId": "string",
- "parentCommentId": null,
- "authorId": "string",
- "authorName": "string",
- "body": null,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": null,
- "deletedAt": null
}Retrieves active portal comments for a target item ordered by creation time. Valid target types are User, Event, Device, and FirmwareVersion.
| targetType required | string Comment target type. |
| targetId required | string Comment target identifier. |
{- "comments": [
- {
- "commentId": "ee0469af-2fa1-4b7e-b5f1-8e711a95821b",
- "targetType": "User",
- "targetId": "string",
- "parentCommentId": null,
- "authorId": "string",
- "authorName": "string",
- "body": null,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": null,
- "deletedAt": null
}
], - "count": 0
}Retrieves all users in the system. This is an administrative endpoint that requires authentication from the PTW Admin Portal. Only tokens issued by the configured PTWAdminPortalIssuer are allowed.
{- "users": [
- {
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": null,
- "email": null,
- "createdAt": null,
- "lastSeenAt": null,
- "organizationName": null,
- "usersDevices": [ ]
}
], - "count": 0
}Creates a new user and associates it with the provided id.
Name (string) or (Name (string or null)) (Name) Default: null | |
Email (string) or (Email (string or null)) (Email) Default: null |
{- "name": null,
- "email": null
}{- "name": null,
- "email": null,
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "provider": "string"
}