Creating a code
After the code is created, a push notification with the code object will be sent to the user's websocket channel (user.{ID}). The push notification will not be sent to the device that initiated this request
POST/api/v1/intercom/{intercom}/codesHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
intercomoptional | int | Intercom identifier for which the code needs to be created | |||||||
titlerequired | string | Code name | |||||||
titlerequired | string | Expiration date for the code |
Response | |||||||||
200 | Successful response | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|