OnAutomate API V1.1.1
Welcome to onautomate Api docs.
User
GET /v1/users/
https://link.amtssl.com/v1/users/
Get all agency users.
Authorization:
Provide your agency api key (Bearer Token). You can find it on Agency -> Settings -> API keys
AUTHORIZATION
Bearer Token
Token
<token>
Example Request
curl --location --request GET 'https://link.amtssl.com/v1/users/' \
--header 'Authorization: Bearer <token>'
Example Response
Unauthorized
Bad Request. please contact support!
{
"msg": "Unauthorized"
}
{
"msg": "Bad Request"
}
Headers
Content-Type: application/json
Headers
Content-Type: application/json
Successful response
200 OK
Body
Headers
Content-Type: application/json
POST /v1/users/
https://link.amtssl.com/v1/users/
Create a User.
Small description for the field allow options.
type fields will allow these options:
role fields will allow these options:
locationIds fields will allow valid locations id of the agency.
Authorization:
Provide your agency api key (Bearer Token). You can find it on Agency -> Settings -> API keys
AUTHORIZATION
Bearer Token
Token
<token>
HEADERS
Content-Type
application/json
Body raw
Example Request
Example Response
Unauthorized
Bad Request. please contact support!
401 Unauthorized
Body
{
"msg": "Unauthorized"
}
400 Bad Request
Body
{
"msg": "Bad Request"
}
Headers
Content-Type: application/json
Headers
Content-Type: application/json
Unprocessable Entity
422 Unprocessable Entity (WebDAV) (RFC 4918)
Body
Headers
Content-Type: application/json
Successful response 
200 OK
Body
Headers
Content-Type: application/json
GET /v1/users/location
https://link.amtssl.com/v1/users/location
AUTHORIZATION
Bearer Token
Token
<token>
Example Request
curl --location --request GET 'https://link.amtssl.com/v1/users/location' \
--header 'Authorization: Bearer <token>'
Example Response
Bad Request. please contact support!
Unauthorized
{
"msg": "Bad Request"
}
{
"msg": "Unauthorized"
}
Headers
Content-Type: application/json
Headers
Content-Type: application/json
Successful Response
200 OK
Body
GET /v1/users/:userId
https://link.amtssl.com/v1/users/:userId
Get agency by user id.
Authorization:
Provide your agency api key (Bearer Token). You can find it on Agency -> Settings -> API keys
AUTHORIZATION
Bearer Token
Token
<token>
PATH VARIABLES
userId
082goXVW3lIExEQPOnd3
(Required) User Id
Example Request
curl --location --request GET 'https://link.amtssl.com/v1/users/:userId' \
--header 'Authorization: Bearer <token>'
Example Response
Bad Request. please contact support!
Unauthorized
400 Bad Request
{
"msg": "Bad Request"
}
401 Unauthorized
{
"msg": "Unauthorized"
}
Headers
Content-Type: application/json
Headers
Content-Type: application/json
Successful response
200 OK
PUT /v1/users/:userId
https://link.amtssl.com/v1/users/:userId
Update a User.
Small description for the field allow options.
type fields will allow these options:
role fields will allow these options:
locationIds fields will allow valid locations id of the agency.
Authorization:
Provide your agency api key (Bearer Token). You can find it on Agency -> Settings -> API keys
AUTHORIZATION
Bearer Token
Token
<token>
HEADERS
Content-Type
application/json
PATH VARIABLES
userId
082goXVW3lIExEQPOnd3
(Required) User Id
Body raw
Example Request
Example Response
Unauthorized
Bad Request. please contact support!
401 Unauthorized
Body
{
"msg": "Unauthorized"
}
400 Bad Request
Body
{
"msg": "Bad Request"
}
Headers
Content-Type: application/json
Headers
Content-Type: application/json
Unprocessable Entity
422 Unprocessable Entity (WebDAV) (RFC 4918)
Body
Headers
Content-Type: application/json
Successful response 
200 OK
Body
Headers
Content-Type: application/json
DEL /v1/users/:userId
https://link.amtssl.com/v1/users/:userId
Delete one of user.
Authorization:
Provide your agency api key (Bearer Token). You can find it on Agency -> Settings -> API key
AUTHORIZATION
Bearer Token
Token
<token>
PATH VARIABLES
userId
082goXVW3lIExEQPOnd3
(Required) User Id
Example Request
curl --location --request DELETE 'https://link.amtssl.com/v1/users/:userId' \
--header 'Authorization: Bearer <token>'
Example Response
Unauthorized
Bad Request. please contact support!
Successful response
401 Unauthorized
Body
{
"msg": "Unauthorized"
}
400 Bad Request
Body
{
"msg": "Bad Request"
}
200 OK
Body
""
Headers
Content-Type: application/json
Headers
Content-Type: application/json
Headers
Content-Type: application/json