Simple In/Out API v4 Documentation

Welcome to the Simple In/Out API! You can use our API to access Simple In/Out data. You can request both read and write access.

The Simple In/Out v4 API is a RESTful (mostly) API protected by OAuth 2.

Expansions

Some of our APIs allow you to include additional information. This saves on API calls, as you can retrieve related information in the primary call and avoid additional requests.

When an API supports including additional information, it does so via the expand query parameter. This is a comma-delimited list of resources to include. We support expansions via embedding directly into the payload.

The Meta object

Most API payloads include a meta object to provide additional details about the requested resource(s). This includes paging most often, and sometimes additional information about the user making the request. For some payloads there may be additional items in the meta.

Here’s an example of a meta object

{"meta": {
  "paging": {
    "page": 1,
    "page_size": 25,
    "page_count": 2,
    "count": 47,
    "previous_page": null,
    "next_page": 2,
    "first_href": "https://www.simpleinout.com/api/v4/beacons",
    "last_href": "https://www.simpleinout.com/api/v4/beacons?page=2",
    "previous_href": null,
    "next_href": "https://www.simpleinout.com/api/v4/beacons?page=2"
  },
  "last_updated_at": {
    "announcements": 1435258926,
    "beacons": 1435250484,
    "favorites": 1437151284,
    "fences": 1436546484,
    "groups": 1436287284,
    "networks": 1436287284,
    "settings": 1439916084
  },
  emergency: nil
}}

Pagination

Pagination occurs when requesting multiple objects. Information about this appears in the meta object.

Name Description
page the page number currently being returned
page_size the number of results per page
page_count the total number of pages available
count the total number of results
previous_page the number of the previous page
next_page the number of the next page
first_href the URL of the API call for the first page of results
last_href the URL of the API call for the last page of results
previous_href the URL of the API call for the page of results prior to the current page
next_href the URL of the API call for the page of results after the current page

Last Update At

The last_updated_at attribute in the meta object returns the epoch time indicating the last time certain resources have been updated. This applies to the authorized user’s company. By storing these dates, you can discover when resources have been updated without having to poll those resources on a regular basis.

If Modified Since and If None Match

Most of the GET requests to the API support the If-Modified-Since and If-None-Match headers. If these two headers are present, the GET request will only return a payload if the relevant data has been updated since the time specified in the If-Modified-Since header and the ETag in the If-None-Match header. If it has been updated since, the payload will be the same as usual. If the data has not been updated, the return will be empty with a HTTP status of 304 (Not Modified). The format of the time is in the HTTP specification, while the ETag should be the same as that returned when a request has been made previously.

When a GET API returns data, the Last-Modified header will be present providing the exact time it’s been modified. This date should be used for future If-Modified-Since requests. The ETag header will be present providing the hash value representing the returned payload. This hash should be used for future If-None-Match requests.

Range Searching

Some integer or date/time fields can be searched by using operators. This permits exact searches, as well as less than, greater than, or between. For these fields, you have an array of options.

  • For exact matches, simply include the value. Date/time fields use epoch time, so it’s almost impossible to get an exact match to the second. Examples are 18 or 1524168783.
  • For ranges based on a single value, you may prepend a symbol to the front of the value. The symbols <, >, <=, or >= are supported. Examples are <18 or >=1524168783.
  • For between range searches, the .. operator is used in between the two values. This includes the values on both ends, as well as those in between. Examples are 9..18 or 1523854800..1524459599.

Sorting

When requesting multiple objects, most of the time you’ll have some sorting options available. Sorting occurs by passing in the sort query parameter. The value is a comma-delimited string of fields in the order you wish them to be sorted. By default, all fields will sort in ascending fashion, but you can sort in descending fashion by including a - sign before the field. An example of this would be sort=name,-begin_at.

Errors

Error objects in Simple In/Out consist of three parts: code, message, and details.

  • code corresponds with those listed below. These provide context as to what type of error occurred.
  • message is an English plain-text reading of what happened. This should be used for further developer debugging, but should not be relied on to remain consistent over time. While these messages can be displayed to end-users, it is highly discouraged as they can change without notice and they are always going to be in English.
  • details provides an array of information in the case of validation failures. This will typically be populated with 5005 validation errors, though they also can appear with improperly formatted status updates (2002). The format of the objects in the array are key: value pairs, whereby key is the name of a field and value is one of a number of possible strings to indicated more specifically what was invalid with the input. Please note that while the key will typically be a parameter on the object, it can occasionally be base for errors that fail validation but don’t apply to a particular field.

An example of an error payload:

{
  "code": 5005,
  "message": "Validation Failure: Name can't be blank, UUID is invalid, Beacons exceed company limit of 100",
  "details": [
    { "name": "blank" },
    { "uuid": "invalid" },
    { "base": "greater_than" }
  ]
}

Error Codes

1002: Company is Disabled

Either the user’s company was on a trial and the trial has expired or the company has let their subscription to Simple In/Out expire. This error will present itself on almost all APIs and will return with the status code 403.


2002: Status Failure

The status update could not be completed.


3001: Device Cannot Follow Everyone and Specific Groups

This device is following everyone, so following users in a specific group is prohibited.


3002: Device Cannot Follow Everyone and Specific Users

This device is following everyone, so following a specific user is prohibited.


3003: You May Not Follow Yourself

A device isn’t allowed to follow the user who is also authenticated on the device.


5001: Bad Range

The integer or date value/range is invalid.


5002: Unknown Sort

The sort requested does not exist. The full message of this error will provide more explanation.


5003: Unknown Expansion

The expansion requested does not exist. The full message of this error will provide more explanation.


5005: Validation Failure

When attempting to create the object, some data was either missing or invalid. The full message of this error will provide more explanation.


5006: No Company Badge Salt

You’ve attempted to print badges for TimeClock, but the company has not created any badges.


5007: Parameters Missing

A required parameter for this API was missing.


5008: Array Required

A parameter which is required to be an array was passed something other than an array.


5009: Unknown Only

The only field requested does not exist. The full message of this error will provide more explanation.


5010: Invalid Float

The floating point number is invalid.


5011: Invalid SIO-Version Header

The format of the SIO-Version request header is invalid.


5012: Invalid JSON

The posted JSON body is invalid.


5013: Invalid Page Size of Zero

The page_size parameter cannot be zero.


5014: Invalid mime-type requested

An invalid mime-type was requested.


6001: Expired User Code

The user-facing device code that was attempted to authorize has expired.


6002: Invalid User Code

The user-facing device code that was attempted to authorize does not exist, and is therefore invalid.

Error Details

taken

The attribute is not unique

inclusion

The attribute is not in the list of acceptable values

invalid

The attribute is not valid

empty

The attribute cannot be empty

blank

The attribute cannot be blank

too_long

The attribute is too long

not_a_hex

The attribute is not a valid hex color code

not_a_number

The attribute is not a number

not_an_integer

The attribute is not an integer

greater_than

The attribute is greater than a predefined limit

greater_than_or_equal_to

The attribute is greater than or equal to a predefined limit

less_than

The attribute is less than a predefined floor

less_than_or_equal_to

The attribute is greater than or equal to a predefined floor

too_long

The attribute is longer than allowed

too_short

The attribute is shorter than allowed

Forbidden Requests (403)

When the user is authenticated, but doesn’t have the necessary permissions to perform an action, the server will respond with the status code of 403 and include the user’s privileges in the payload.

Example payload:

{
  "company": {
    "id": "1",
    "scheduled_statuses": true
  },
  "user": {
    "id": "5",
    "roles": {
      "name": "Regular User",
      "billing": false
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": false,
      "manage_others_status": false,
      "manage_own_archives": false,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1506268448,
      "updated_at": 1506269853
    }
  }
}

The privileges payload may not exist on all forbidden responses. In the cases when an error code is used, such as when a company is disabled, only the code and message will be returned.

Web Hooks

Web Hooks are a great way to be notified when something happens inside Simple In/Out. When you add a Web Hook URL to Simple In/Out, we’ll send a request to that URL with JSON in the body to tell you about things that have happened.

Currently, this applies to only three event types: status.new, status.schedule, and status.destroy, though many may be added in the future. It is strongly advised that you code against the type attribute on the root of the JSON object to avoid new event types being added in the future having unexpected impacts on your code.

The root JSON keys define the basics and out of the box are compatible with Slack’s incoming webhooks. This also means that the text with be formatted in Markdown. Within the data object is much of the information specific to Simple In/Out, including ids that can be used in combination with APIv4 to request further information.

{
  "username": "Bojack Horseman",
  "email": "bojack@simplymadeapps.com",
  "icon_url": "http://bojackhorseman.com/avatar.gif",
  "text": "*In*: In Hollywoo",
  "type": "status.new",
  "data": {
    "user_id": "34858",
    "status": "in",
    "comment": "In Hollywoo",
    "created_at": 1448046759,
    "admin": {
      "id": "2844", "name": "Princess Carolyn"
    },
    "application": {
      "id": "84774", "name": "Simple In/Out iOS"
    }
  }
}



Announcements

Create a announcement

Creates a new announcement. Once this announcement is created, it will appear in the company’s announcements within the Simple In/Out apps. Users must have a role that permits managing announcements to create announcements. Companies are limited to 100 announcements.

Punto de llegada

POST /api/v4/announcements

Parametros

Name Description
announcement[message] requerido (string) the name of the announcement
announcement[push] (boolean) whether this announcement should trigger a push notification to users, defaults to false
announcement[group_id] (string) restrict the announcement to a specific group, defaults to no restrictions
announcement[expires_at] (integer) the epoch time when the announcement should expire, defaults to no expiration
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user'

Solicitud

Ruta

POST /api/v4/announcements

Encabezados

Content-Type: application/json
Authorization: Bearer 8Hv-ZMHT5kXrq1aolabPUuCl-pVkYhjupwzU6G9nbu8

Cuerpo

{
  "announcement": {
    "message": "Evacuate the building",
    "push": false,
    "group_id": "58602",
    "expires_at": 1739462016
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/announcements" -d '{"announcement":{"message":"Evacuate the building","push":false,"group_id":"58602","expires_at":1739462016}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 8Hv-ZMHT5kXrq1aolabPUuCl-pVkYhjupwzU6G9nbu8"

Respuesta

Simulated Response

Campos de respuesta

Name Description
announcements (object) the newly created announcement attributes

Estado

201

Encabezados

ETag: W/"99ce23047397e977742733fdefb5c29e"

Cuerpo

{
  "announcements": {
    "id": "1754",
    "group_id": "58602",
    "user_id": "941640",
    "message": "Evacuate the building",
    "push": false,
    "expires_at": null,
    "created_at": 1739375616,
    "updated_at": 1739375616
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1739375616,
      "beacons": 1737215616,
      "desktop_presences": 1735660416,
      "favorites": 1736265216,
      "fences": 1737993216,
      "groups": 1739375616,
      "networks": 1736870016,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null
  }
}

Delete an announcement

Deletes an existing announcement. Users must have a role that permits managing the announcements to delete announcements.

Punto de llegada

DELETE /api/v4/announcements/:id

Solicitud

Ruta

DELETE /api/v4/announcements/1757

Encabezados

Content-Type: application/json
Authorization: Bearer kjJMNheaAZ7SI7sC8oEa3acHnQfoKhkhBA_7Kjza5Vo

cURL

curl "https://www.simpleinout.com/api/v4/announcements/1757" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer kjJMNheaAZ7SI7sC8oEa3acHnQfoKhkhBA_7Kjza5Vo"

Respuesta

Simulated Response

Estado

204

List all announcements

Return a list of all the announcements belonging to the company.

Punto de llegada

GET /api/v4/announcements

Parametros

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user'

Solicitud

Ruta

GET /api/v4/announcements

Encabezados

Content-Type: application/json
Authorization: Bearer 1UL7ZW4t84KS3c_lTZ_JfNGqIIfaAMg2fxBlCGDpYj8

cURL

curl -g "https://www.simpleinout.com/api/v4/announcements" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 1UL7ZW4t84KS3c_lTZ_JfNGqIIfaAMg2fxBlCGDpYj8"

Respuesta

Simulated Response

Campos de respuesta

Name Description
announcements (array) an array of announcements

Estado

200

Encabezados

ETag: W/"4ac4518c6329e9b1ba7aa658d9748aef"
Last-Modified: Wed, 12 Feb 2025 15:53:36 GMT

Cuerpo

{
  "announcements": [
    {
      "id": "1755",
      "group_id": null,
      "user_id": "941642",
      "message": "Non vitae quisquam voluptas.",
      "push": false,
      "expires_at": 1739462016,
      "created_at": 1739375616,
      "updated_at": 1739375616
    },
    {
      "id": "1756",
      "group_id": null,
      "user_id": "941642",
      "message": "Inventore quisquam non quia.",
      "push": false,
      "expires_at": 1739462016,
      "created_at": 1739375616,
      "updated_at": 1739375616
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/announcements",
      "last_href": "http://example.org/api/v4/announcements",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1739375616,
      "beacons": 1732722816,
      "desktop_presences": 1734796416,
      "favorites": 1737647616,
      "fences": 1734191616,
      "groups": 1732895616,
      "networks": 1731858816,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null
  }
}

Authentication

Authorization

Authorization is required to access the Simple In/Out API. This results in a HTTP 302 redirect to simpleinout.com. There, Simple In/Out will ask the user for their credentials and verify they wish to grant your application permission to act on their behalf. If they allow it, Simple In/Out will send a request to your redirect_uri with a code that you can use in the Authorization Code grant to have access and refresh tokens to access the API.

Punto de llegada

GET /oauth/authorize

Parametros

Name Description
response_type requerido (string) the type of authorization to use, in this case always 'code'
client_id requerido (string) your API client key
redirect_uri requerido (string) the URI to return the user to after authenticating, must match those registered with Simple In/Out
scope requerido (string) requested scope, either 'read' or 'write', by default 'read'
locale (string) the language for authorization. Available locales: en, en-au, en-ca, en-gb, es, fr, fr-ca. Defaults to 'en'

Solicitud

Ruta

GET /oauth/authorize?response_type=code&client_id=PLACE_YOUR_API_CLIENT_ID_HERE&redirect_uri=https%3A%2F%2Fwww.simplymadeapps.com%2Fredirect%2Furl&scope=write&locale=en

Encabezados

Content-Type: application/json

Parámetros de la consulta

response_type=code
client_id=PLACE_YOUR_API_CLIENT_ID_HERE
redirect_uri=https://www.simplymadeapps.com/redirect/url
scope=write
locale=en

cURL

curl -g "https://www.simpleinout.com/oauth/authorize?response_type=code&client_id=PLACE_YOUR_API_CLIENT_ID_HERE&redirect_uri=https%3A%2F%2Fwww.simplymadeapps.com%2Fredirect%2Furl&scope=write&locale=en" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Respuesta

Simulated Response

Estado

302

Cuerpo

<html><body>You are being <a href="http://example.org/oauth/authorize?client_id=PLACE_YOUR_API_CLIENT_ID_HERE&amp;redirect_uri=https%3A%2F%2Fwww.simplymadeapps.com%2Fredirect%2Furl&amp;response_type=code&amp;scope=write&amp;user_confirmed=true&amp;locale=en">redirected</a>.</body></html>

Authorization (Device)

Authorization is required to access the Simple In/Out API. This API will produce everything needed to display a code and URL to the user to authorize a device. Once this API has returned, polling can begin to the Device Grant to discover the user’s information after they have authorized.

Punto de llegada

POST /oauth/authorize_device

Parametros

Name Description
client_id requerido (string) your API client key
client_secret requerido (string) your API client secret
scope requerido (string) requested scope, must be 'executive'

Solicitud

Ruta

POST /oauth/authorize_device

Encabezados

Content-Type: application/json

Cuerpo

{
  "client_id": "PLACE_YOUR_API_CLIENT_ID_HERE",
  "client_secret": "PLACE_YOUR_API_CLIENT_SECRET_HERE",
  "scope": "executive"
}

cURL

curl "https://www.simpleinout.com/oauth/authorize_device" -d '{"client_id":"PLACE_YOUR_API_CLIENT_ID_HERE","client_secret":"PLACE_YOUR_API_CLIENT_SECRET_HERE","scope":"executive"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Respuesta

Simulated Response

Campos de respuesta

Name Description
device_code (string) the private code used to poll within the Device Grant
expires_in (integer) the number of seconds until these codes will expire
interval (integer) the number of seconds between polling events, any developer polling faster than this will receive 'slow_down' errors
user_code (string) the public code to display to the user
verification_uri (string) the public URL to display to the user
verification_uri_complete (string) the public URL to use if generating a QR code

Estado

200

Encabezados

ETag: W/"6d2801971d99a63cd6f0c71454c695b9"

Cuerpo

{
  "device_code": "Q1qUVclfCL7swgxFbYvb0jHWrhndQqyNluMl_YrMDSQ",
  "user_code": "48UCX7G4",
  "verification_uri": "http://example.org/code",
  "verification_uri_complete": "http://example.org/code?user_code=48UCX7G4",
  "expires_in": 300,
  "interval": 5
}

Authorization Code grant

Authorization Code should be used for accessing the API on behalf of a particular user. This is useful for pulling information about the user, or customizing the return of some APIs by the user’s preference.

The first step here is to have your user authorize your app for use. To do this, send your user to our site as noted to the left, passing your client_id and your redirect_uri. We’ll handle asking for the user, authenticating they are who they say they are, and handling the authorization (asking the user for permission on your behalf).

Once your user successfully authorizes your application, they will be redirected back to you. In this response will be a code in the form of a query string. Use this code to request tokens from Simple In/Out. You’ll then receive an access token and refresh token.

Punto de llegada

POST /oauth/token

Parametros

Name Description
grant_type requerido (string) type of grant to use
client_id requerido (string) your API client key
client_secret requerido (string) your API client secret
code requerido (string) if using Authorization Code grant, this is the code that is returned from Simple In/Out
redirect_uri requerido (string) the URI to return the user to after authenticating, must match those registered with Simple In/Out
scope (string) requested scope, either 'read' or 'write', defaults to 'read'

Solicitud

Ruta

POST /oauth/token

Encabezados

Content-Type: application/json

Cuerpo

{
  "grant_type": "authorization_code",
  "client_id": "YOUR_API_CLIENT_ID",
  "client_secret": "YOUR_API_CLIENT_SECRET",
  "code": "Whygqe11Bew8fIw9tGqKrGZhoG6o7Zegnt8O5h_J2Jw",
  "redirect_uri": "https://www.simplymadeapps.com/redirect/url"
}

cURL

curl "https://www.simpleinout.com/oauth/token" -d '{"grant_type":"authorization_code","client_id":"YOUR_API_CLIENT_ID","client_secret":"YOUR_API_CLIENT_SECRET","code":"Whygqe11Bew8fIw9tGqKrGZhoG6o7Zegnt8O5h_J2Jw","redirect_uri":"https://www.simplymadeapps.com/redirect/url"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Respuesta

Simulated Response

Campos de respuesta

Name Description
access_token (string) the access token used to make API requests
refresh_token (string) used with the Refresh Token grant type to request a new token
token_type (string) identifies the type of token
expires_in (integer) length of time, in seconds, that the token will be honored
scope (string) the scope of the token, either 'read' or 'write'
created_at (integer) the time the token was issued
user (object) the authenticated user's id, company id, and role.

Estado

200

Encabezados

ETag: W/"de9152d0947af5c2fc0454c813e4b9d2"

Cuerpo

{
  "access_token": "cCQdPwF4_goKpzKCWfPFJv9W1fLncyRPTM61pqWF4js",
  "token_type": "Bearer",
  "expires_in": 7200,
  "refresh_token": "OhPg1cxGhMHuUzAZ6LQ1nVWyCPRGVQzN0bso6Ale1s8",
  "scope": "write",
  "created_at": 1739375619,
  "user": {
    "id": "941760",
    "company_id": "514847",
    "roles": {
      "id": "2283809",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1739375619,
      "updated_at": 1739375619
    }
  }
}

Client Credentials grant

Client Credentials should be used for accessing the API generally, not attached to a specific user. Only the create company API allows the Client Credentials grant type as it is the only one that doesn’t require a specific user. This grant type is available for Simply Made Apps clients only.

Punto de llegada

POST /oauth/token

Parametros

Name Description
grant_type requerido (string) type of grant to use, in this case 'client_credentials'
client_id requerido (string) your API client key
client_secret requerido (string) your API client secret
scope requerido (string) requested scope, required to be 'executive'

Solicitud

Ruta

POST /oauth/token

Encabezados

Content-Type: application/json

Cuerpo

{
  "grant_type": "client_credentials",
  "client_id": "YOUR_API_CLIENT_ID",
  "client_secret": "YOUR_API_CLIENT_SECRET",
  "scope": "executive"
}

cURL

curl "https://www.simpleinout.com/oauth/token" -d '{"grant_type":"client_credentials","client_id":"YOUR_API_CLIENT_ID","client_secret":"YOUR_API_CLIENT_SECRET","scope":"executive"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Respuesta

Simulated Response

Campos de respuesta

Name Description
access_token (string) the access token used to make API requests
token_type (string) identifies the type of token
expires_in (integer) length of time, in seconds, that the token will be honored
scope (string) the scope of the token, either 'read' or 'write'
created_at (integer) the time the token was issued
user (object) the authenticated user's id and role (always nil in this case)

Estado

200

Encabezados

ETag: W/"9f063768a0a61de61b79baeb6629db87"

Cuerpo

{
  "access_token": "1gPAvctG7vv86AKJQLWQc589ar2JOGH3YyuffYfggWs",
  "token_type": "Bearer",
  "expires_in": 7200,
  "scope": "executive",
  "created_at": 1739375619,
  "user": null
}

Device Code grant

Device Codes are used to generate API tokens for users based on codes displayed on devices (televisions, tablets). A private device code is required, which is not shown to the user, and the user will need to authorize via a user code that is smaller and displayed for them to enter into the Simple In/Out website. This grant type is available for Simply Made Apps clients only.

When successful, a status code of 200 will be returned along with tokens and information about the authorized user. When unsuccessful, a status code of 400 will be returned along with a JSON payload with an “error” key. The error key has several possible values.

  • authorization_pending is returned when the user hasn’t yet authorize this device code yet, but may in the future.
  • expired_token is returned when the user did not authorize and the device code is now expired (dead).
  • slow_down is returned when the developer is polling for a response faster than the agreed upon interval. Don’t do this.

Punto de llegada

POST /oauth/token

Parametros

Name Description
client_id requerido (string) your API client key
client_secret requerido (string) your API client secret
device_code requerido (string) private device_code to check
grant_type requerido (string) type of grant to use, in this case always 'urn:ietf:params:oauth:grant-type:device_code'

Solicitud

Ruta

POST /oauth/token

Encabezados

Content-Type: application/json

Cuerpo

{
  "client_id": "YOUR_API_CLIENT_ID",
  "client_secret": "YOUR_API_CLIENT_SECRET",
  "device_code": "UMLgJUpOZCPh37JGp8KnbE4IDyXTJ-h4Ct05CximdLE",
  "grant_type": "urn:ietf:params:oauth:grant-type:device_code"
}

cURL

curl "https://www.simpleinout.com/oauth/token" -d '{"client_id":"YOUR_API_CLIENT_ID","client_secret":"YOUR_API_CLIENT_SECRET","device_code":"UMLgJUpOZCPh37JGp8KnbE4IDyXTJ-h4Ct05CximdLE","grant_type":"urn:ietf:params:oauth:grant-type:device_code"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Sio-Version: 1.0.0" \
	-H "Content-Type: application/json"

Respuesta

Simulated Response

Campos de respuesta

Name Description
access_token (string) the access token used to make API requests
refresh_token (string) used with the Refresh Token grant type to request a new token
token_type (string) identifies the type of token
expires_in (integer) length of time, in seconds, that the token will be honored
scope (string) the scope of the token, either 'read' or 'write'
created_at (integer) the time the token was issued
user (object) the authenticated user's id and role.

Estado

200

Encabezados

ETag: W/"7c4e647fb7ecfb9eec532ee05a98c472"

Cuerpo

{
  "access_token": "6Za5BtN4NqCODBCtoapvY5iZx_nCHykdNSQUof8lL4s",
  "token_type": "Bearer",
  "expires_in": 7200,
  "refresh_token": "VX_yEzT0DbdyAtbnVMqPO-WCX-iK-1LL_MRKjNi-KgQ",
  "scope": "executive",
  "created_at": 1739375619,
  "user": {
    "id": "941759",
    "company_id": "514846",
    "roles": {
      "id": "2283805",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1739375619,
      "updated_at": 1739375619
    }
  }
}

Password grant

Password should be used for accessing the API for a specific user. Our Password grant type accepts username (email) and password. This grant type is available for Simply Made Apps clients only.

Punto de llegada

POST /oauth/token

Parametros

Name Description
grant_type requerido (string) type of grant to use, in this case always 'password'
client_id requerido (string) your API client key
client_secret requerido (string) your API client secret
username requerido (string) the email address of your user
password requerido (string) ths password of your user
scope requerido (string) requested scope, always 'executive'

Solicitud

Ruta

POST /oauth/token

Encabezados

Content-Type: application/json

Cuerpo

{
  "grant_type": "password",
  "client_id": "YOUR_API_CLIENT_ID",
  "client_secret": "YOUR_API_CLIENT_SECRET",
  "username": "sterling@simplymadeapps.com",
  "password": "abcdef123456",
  "scope": "executive"
}

cURL

curl "https://www.simpleinout.com/oauth/token" -d '{"grant_type":"password","client_id":"YOUR_API_CLIENT_ID","client_secret":"YOUR_API_CLIENT_SECRET","username":"sterling@simplymadeapps.com","password":"abcdef123456","scope":"executive"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Sio-Version: 1.0.0" \
	-H "Content-Type: application/json"

Respuesta

Simulated Response

Campos de respuesta

Name Description
access_token (string) the access token used to make API requests
refresh_token (string) used with the Refresh Token grant type to request a new token
token_type (string) identifies the type of token
expires_in (integer) length of time, in seconds, that the token will be honored
scope (string) the scope of the token, either 'read' or 'write'
created_at (integer) the time the token was issued
user (object) the authenticated user's id and role.

Estado

200

Encabezados

ETag: W/"11cc2995b2be436e7567ad82f0bf6dd1"

Cuerpo

{
  "access_token": "YCLetYbWjQIteDW2wLwShT4fuRjeCorOlM8fCcfhifs",
  "token_type": "Bearer",
  "expires_in": 7200,
  "refresh_token": "7IyWJlcuPyoEVzBxU_WbDPDNcuF_G2GZHwyPjiaNfPk",
  "scope": "executive",
  "created_at": 1739375619,
  "user": {
    "id": "941763",
    "company_id": "514849",
    "roles": {
      "id": "2283817",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1739375619,
      "updated_at": 1739375619
    }
  }
}

Refresh Token grant

Refresh Token should be used to renew your access token in the event that it has expired. This is useful for regaining access without again having to as the user for credentials.

Punto de llegada

POST /oauth/token

Parametros

Name Description
grant_type requerido (string) type of grant to use, in this case always 'refresh_token'
client_id requerido (string) your API client key
client_secret requerido (string) your API client secret
refresh_token requerido (string) your refresh token

Solicitud

Ruta

POST /oauth/token

Encabezados

Content-Type: application/json

Cuerpo

{
  "grant_type": "refresh_token",
  "client_id": "YOUR_API_CLIENT_ID",
  "client_secret": "YOUR_API_CLIENT_SECRET",
  "refresh_token": "ph71eka1m9urmnjw0x9m8zvcumgir0yh"
}

cURL

curl "https://www.simpleinout.com/oauth/token" -d '{"grant_type":"refresh_token","client_id":"YOUR_API_CLIENT_ID","client_secret":"YOUR_API_CLIENT_SECRET","refresh_token":"ph71eka1m9urmnjw0x9m8zvcumgir0yh"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Respuesta

Simulated Response

Campos de respuesta

Name Description
access_token (string) the access token used to make API requests
refresh_token (string) used with the Refresh Token grant type to request a new token
token_type (string) identifies the type of token
expires_in (integer) length of time, in seconds, that the token will be honored
scope (string) the scope of the token, either 'read' or 'write'
created_at (integer) the time the token was issued
user (object) the authenticated user's id and role.

Estado

200

Encabezados

ETag: W/"724e042f82d54f3d29a8ca0f557c17a1"

Cuerpo

{
  "access_token": "d0No5s8WafnYhLlD2QoVZRVRWAXyFNUfPhQck2Ze2nM",
  "token_type": "Bearer",
  "expires_in": 604800,
  "refresh_token": "8pJcahmG5wVsV7XbOqA-WnAmFIv5z90hP8Nzwv13H74",
  "scope": "write",
  "created_at": 1739375619,
  "user": {
    "id": "941764",
    "company_id": "514850",
    "roles": {
      "id": "2283821",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1739375619,
      "updated_at": 1739375619
    }
  }
}

Revoke a token

Revokes a token, rendering it invalid.

Punto de llegada

POST /oauth/revoke

Parametros

Name Description
client_id requerido (string) your API client key
client_secret requerido (string) your API client secret
token requerido (string) the token to revoke

Solicitud

Ruta

POST /oauth/revoke

Encabezados

Content-Type: application/json

Cuerpo

{
  "client_id": "6510783471040",
  "client_secret": "1421078260575",
  "token": "OjRv9Li66dtq9HH8hvdYEM4rBfvlR498vnU1lmQGs2k"
}

cURL

curl "https://www.simpleinout.com/oauth/revoke" -d '{"client_id":"6510783471040","client_secret":"1421078260575","token":"OjRv9Li66dtq9HH8hvdYEM4rBfvlR498vnU1lmQGs2k"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Respuesta

Simulated Response

Estado

200

Encabezados

ETag: W/"44136fa355b3678a1146ad16f7e8649e"

Cuerpo

{}

Token information

Provides details about the OAuth token.

Punto de llegada

GET /oauth/token/info

Solicitud

Ruta

GET /oauth/token/info

Encabezados

Content-Type: application/json
Authorization: Bearer 74ecKbOH_62K8lQA_FYH0BQwOhWTBg_AmUkTtO9HYiA

cURL

curl -g "https://www.simpleinout.com/oauth/token/info" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 74ecKbOH_62K8lQA_FYH0BQwOhWTBg_AmUkTtO9HYiA"

Respuesta

Simulated Response

Campos de respuesta

Name Description
resource_owner_id (integer) the id of the user
scopes (array) the scopes this token is authorized to use
expires_in_seconds (integer) the number of seconds until the token expires
application (object) information about the application
created_at (integer) the time the token was issued

Estado

200

Encabezados

ETag: W/"2d620440018c4e1fecfae36c912a570d"

Cuerpo

{
  "resource_owner_id": 941762,
  "scope": [
    "read"
  ],
  "expires_in": 604800,
  "application": {
    "uid": "6176710777892"
  },
  "created_at": 1739375619
}

Automatic Update Events

Create an automatic update event

Creates new automatic update events. Users must have a role that permits managing their own current status.

Punto de llegada

POST /api/v4/automatic_update_events

Parametros

Name Description
automatic_update_events requerido (array) the array of parameters for each of the events
automatic_update_events[][abandoned_at] (float) epoch time, with precision, for when the device stopped trying to post the event to the server
automatic_update_events[][device_id] requerido (string) the unique identifier of the user's device
automatic_update_events[][event_type] requerido (string) the type of event, either 'entry' or 'exit'
automatic_update_events[][trigger_id] requerido (string) the unique identifier of the item that triggered the event
automatic_update_events[][trigger_type] requerido (string) the type of item that triggered the event, 'Beacon', 'Fence', or 'Network'
automatic_update_events[][triggered_at] requerido (float) epoch time, with precision, for when the event was originally triggered

Solicitud

Ruta

POST /api/v4/automatic_update_events

Encabezados

Content-Type: application/json
Authorization: Bearer Ahp7YqebgUc2fo5DEWcl0pl-UsT6dADYHM2hh2Mp-YY

Cuerpo

{
  "automatic_update_events": [
    {
      "abandoned_at": 1739375557.666301,
      "device_id": 54426,
      "event_type": "entry",
      "trigger_id": 26066,
      "trigger_type": "Beacon",
      "triggered_at": 1739375497.679992
    },
    {
      "device_id": 54426,
      "event_type": "exit",
      "trigger_id": "noop-deleted-beacon",
      "trigger_type": "Beacon",
      "triggered_at": 1739375617.680002
    }
  ]
}

cURL

curl "https://www.simpleinout.com/api/v4/automatic_update_events" -d '{"automatic_update_events":[{"abandoned_at":1739375557.666301,"device_id":54426,"event_type":"entry","trigger_id":26066,"trigger_type":"Beacon","triggered_at":1739375497.679992},{"device_id":54426,"event_type":"exit","trigger_id":"noop-deleted-beacon","trigger_type":"Beacon","triggered_at":1739375617.680002}]}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer Ahp7YqebgUc2fo5DEWcl0pl-UsT6dADYHM2hh2Mp-YY"

Respuesta

Simulated Response

Campos de respuesta

Name Description
automatic_update_events (array) contains the ids of the created events or errors from the invalid events

Estado

201

Encabezados

ETag: W/"feeeaeedd2c02d78676641817c2ed0b2"

Cuerpo

{
  "automatic_update_events": [
    {
      "id": "25827"
    },
    {
      "id": null,
      "errors": {
        "trigger": "blank"
      }
    }
  ],
  "meta": {
    "last_updated_at": {
      "announcements": 1732809217,
      "beacons": 1739375617,
      "desktop_presences": 1730908417,
      "favorites": 1735833217,
      "fences": 1733500417,
      "groups": 1731945217,
      "networks": 1736783617,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null,
    "update_available": false
  }
}

Beacons

Create a beacon

Creates a new beacon. Once this beacon is created, it will appear in the company’s beacons within the Simple In/Out apps. The UUID can then be added to a hardware beacon to broadcast. Users must have a role that permits managing the company to create beacons. Companies are limited to 100 Beacons.

Punto de llegada

POST /api/v4/beacons

Parametros

Name Description
beacon[name] requerido (string) the name of the beacon
beacon[uuid] (string) the unique beacon identifier
beacon[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
beacon[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
beacon[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
beacon[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Solicitud

Ruta

POST /api/v4/beacons

Encabezados

Content-Type: application/json
Authorization: Bearer B_XxBqOQe7zqqHMUgyuNyY109tw-UPelzwv9Nl-nf9s

Cuerpo

{
  "beacon": {
    "name": "My Office",
    "uuid": "6EA4801F-4D41-4114-AFA7-7EC977C81B41"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/beacons" -d '{"beacon":{"name":"My Office","uuid":"6EA4801F-4D41-4114-AFA7-7EC977C81B41"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer B_XxBqOQe7zqqHMUgyuNyY109tw-UPelzwv9Nl-nf9s"

Respuesta

Simulated Response

Campos de respuesta

Name Description
beacons (object) the newly created beacon attributes

Estado

201

Encabezados

ETag: W/"2312a70c0fcbc1967abc91610a9c83fd"

Cuerpo

{
  "beacons": {
    "id": "26070",
    "name": "My Office",
    "uuid": "6EA4801F-4D41-4114-AFA7-7EC977C81B41",
    "comment_on_entry": "In at My Office",
    "comment_on_exit": "Left My Office",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1739375619,
    "updated_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1738079619,
      "beacons": 1739375619,
      "desktop_presences": 1734882819,
      "favorites": 1734450819,
      "fences": 1737302019,
      "groups": 1733327619,
      "networks": 1734882819,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Delete a beacon

Deletes an existing beacon. Users must have a role that permits managing the company to delete beacons.

Punto de llegada

DELETE /api/v4/beacons/:id

Solicitud

Ruta

DELETE /api/v4/beacons/26071

Encabezados

Content-Type: application/json
Authorization: Bearer lxtp01X5mb_STHQMViYurTJyI0MKexilkE_AjItSdr4

cURL

curl "https://www.simpleinout.com/api/v4/beacons/26071" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer lxtp01X5mb_STHQMViYurTJyI0MKexilkE_AjItSdr4"

Respuesta

Simulated Response

Estado

204

List all beacons

Return a list of all the beacons belonging to the company.

Punto de llegada

GET /api/v4/beacons

Parametros

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/beacons

Encabezados

Content-Type: application/json
Authorization: Bearer -v55Tnahwb-SdVWZ3QSfNkyA0IKD4AMAWLYakh3e_jw

cURL

curl -g "https://www.simpleinout.com/api/v4/beacons" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer -v55Tnahwb-SdVWZ3QSfNkyA0IKD4AMAWLYakh3e_jw"

Respuesta

Simulated Response

Campos de respuesta

Name Description
beacons (array) an array of beacons

Estado

200

Encabezados

ETag: W/"579ce8117c396d03238e51d7c008c5d7"
Last-Modified: Wed, 12 Feb 2025 15:53:39 GMT

Cuerpo

{
  "beacons": [
    {
      "id": "26067",
      "name": "2 - East Reyton",
      "uuid": "969C3BF9-CBE6-4835-91AA-3DBF79835FC5",
      "comment_on_entry": "In at 2 - East Reyton",
      "comment_on_exit": "Left 2 - East Reyton",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1739375619,
      "updated_at": 1739375619
    },
    {
      "id": "26068",
      "name": "3 - West Westonview",
      "uuid": "68F4E094-6500-4A08-BBD6-0F99FCB808FB",
      "comment_on_entry": "In at 3 - West Westonview",
      "comment_on_exit": "Left 3 - West Westonview",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1739375619,
      "updated_at": 1739375619
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/beacons",
      "last_href": "http://example.org/api/v4/beacons",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1732031619,
      "beacons": 1739375619,
      "desktop_presences": 1738338819,
      "favorites": 1731426819,
      "fences": 1736178819,
      "groups": 1734969219,
      "networks": 1735142019,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Update a beacon

Updates an existing beacon. Please note that if the UUID of the beacon is updated, any corresponding hardware must also be updated to broadcast the new UUID. Users must have a role that permits managing the company to update beacons.

Punto de llegada

PATCH /api/v4/beacons/:id

Parametros

Name Description
beacon[name] (string) the name of the beacon
beacon[uuid] (string) the unique beacon identifier
beacon[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
beacon[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
beacon[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
beacon[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Solicitud

Ruta

PATCH /api/v4/beacons/26069

Encabezados

Content-Type: application/json
Authorization: Bearer zEjgmyDWD-nzhA2xBWVfzPGv_lbRGWSEbHakgYNBsxo

Cuerpo

{
  "beacon": {
    "name": "My Renamed Office"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/beacons/26069" -d '{"beacon":{"name":"My Renamed Office"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer zEjgmyDWD-nzhA2xBWVfzPGv_lbRGWSEbHakgYNBsxo"

Respuesta

Simulated Response

Campos de respuesta

Name Description
beacons (object) the newly updated beacon attributes

Estado

200

Encabezados

ETag: W/"72a6f1f57a131d3ed178c54c29140a8f"

Cuerpo

{
  "beacons": {
    "id": "26069",
    "name": "My Renamed Office",
    "uuid": "EF1CB2EB-2539-4C34-A32F-FA77635DB234",
    "comment_on_entry": "In at 4 - East Felishaborough",
    "comment_on_exit": "Left 4 - East Felishaborough",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1739375619,
    "updated_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1734710019,
      "beacons": 1739375619,
      "desktop_presences": 1739116419,
      "favorites": 1735574019,
      "fences": 1735055619,
      "groups": 1733241219,
      "networks": 1738252419,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Codes

Authorize a user code

Authorize a user-facing code for access to the API. This is the equivalent to what simpleinout.com/code does for a user when entering this code. When scanning a QR code on a phone with the Simple In/Out app installed, it is presumed that there is a greater chance the user is authenticated in the app vs the website.

If an error occurs, the error code will be in the 6xxx series of errors. Refer to the error handling docs at the top of this readme for details.

This API requires executive scope (Simply Made Apps only).

Punto de llegada

POST /api/v4/codes

Parametros

Name Description
user_code requerido (string) the public-facing user code scanned by user

Solicitud

Ruta

POST /api/v4/codes

Encabezados

Content-Type: application/json
Authorization: Bearer xlc9-m9l9khQguWpdUpJNPnXOL7EvF8EClyZmC40Aps

Cuerpo

{
  "user_code": "QUTRIHVL"
}

cURL

curl "https://www.simpleinout.com/api/v4/codes" -d '{"user_code":"QUTRIHVL"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer xlc9-m9l9khQguWpdUpJNPnXOL7EvF8EClyZmC40Aps"

Respuesta

Simulated Response

Estado

204

Companies

Create Badges PDF

Schedules a new PDF of badges to be created. This will be created in the background due to the length of time it may take to complete. The return will indicate where the badges will be stored when finished, and it is the responsibility of the developer to check that destination for the finished result. If the company does not have a ‘badge_salt’ yet set, this API will return a 404.

Users must have a role that permits managing the company to generate badges.

Punto de llegada

GET /api/v4/companies/my/badges

Parametros

Name Description
title Title to display on badges, defaults to company name
paper Paper type for badge printing, accepts US_LETTER, AVERY_5264, or BADGY, defaults to US_LETTER

Solicitud

Ruta

GET /api/v4/companies/my/badges?title=Badges&paper=AVERY_5264

Encabezados

Content-Type: application/json
Authorization: Bearer ArCoU8PLGAjznlvwCu5fyZjU8IDAsrcfOl6ZV5OoWXc

Parámetros de la consulta

title=Badges
paper=AVERY_5264

cURL

curl -g "https://www.simpleinout.com/api/v4/companies/my/badges?title=Badges&paper=AVERY_5264" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer ArCoU8PLGAjznlvwCu5fyZjU8IDAsrcfOl6ZV5OoWXc"

Respuesta

Simulated Response

Campos de respuesta

Name Description
badges (object) badges object containing the URL the PDF will be stored at

Estado

202

Cuerpo

{
  "badges": {
    "url": "https://s3.amazonaws.com/simpleinout-development/badges/badges-5148301739375619.pdf"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1739116419,
      "beacons": 1732204419,
      "desktop_presences": 1738338819,
      "favorites": 1731513219,
      "fences": 1738857219,
      "groups": 1732463619,
      "networks": 1732895619,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null,
    "update_available": false
  }
}

Create a company

Creates a new company. The company defaults to the Pro 50 trial plan. This API requires a user-less Client Credential grant, and you must have executive scope (Simply Made Apps only).

Punto de llegada

POST /api/v4/companies

Parametros

Name Description
company[name] requerido (string) the name of the company
user[user_name] requerido (string) the name of the first user, who is also the admin
user[email] requerido (string) the email of the first user, who is also the admin
user[password] requerido (string) the password of the first user, who is also the admin
user[lang] requerido (string) the language code for the first user, defaults to 'en'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'announcements', 'announcements.user', 'billing', 'beacons', 'desktop_presences', 'fences', 'groups', 'favorites', 'networks', 'roles'

Solicitud

Ruta

POST /api/v4/companies

Encabezados

Content-Type: application/json
Authorization: Bearer XCQ2gL8tD8BKhA9c7UJUzGLNVe6Q4gXLWEsrPBIbZ-A

Cuerpo

{
  "company": {
    "name": "My Company"
  },
  "user": {
    "user_name": "Bojack Horseman",
    "email": "bojack@simplymadeapps.com",
    "password": "abcdef123456"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/companies" -d '{"company":{"name":"My Company"},"user":{"user_name":"Bojack Horseman","email":"bojack@simplymadeapps.com","password":"abcdef123456"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer XCQ2gL8tD8BKhA9c7UJUzGLNVe6Q4gXLWEsrPBIbZ-A"

Respuesta

Simulated Response

Campos de respuesta

Name Description
companies[name] (string) the authorized user's company name
companies[available_statuses] (array) the statuses that are available to the company
companies[logo_url] (string) url of an image to be used as a fullscreen logo
companies[default_role_id] (string) the unique identifier for the default role
companies[scheduled_statuses] (boolean) whether Scheduled Statuses feature is enabled
companies[badge_salt] (string) badge salt for TimeClock
companies[theme] (string) the currently selected theme color for the company
companies[super_company] (object) id and name of the super-company
companies[created_at] (integer) epoch time the company was created

Estado

201

Encabezados

ETag: W/"27a8b284544be33a58ee528a123e609c"

Cuerpo

{
  "companies": {
    "id": "514831",
    "available_statuses": [
      "in",
      "remote",
      "busy",
      "break",
      "out",
      "sick",
      "vacation"
    ],
    "name": "My Company",
    "scheduled_statuses": true,
    "default_role_id": "2283743",
    "logo_url": null,
    "created_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 0,
      "beacons": 0,
      "desktop_presences": 0,
      "favorites": 0,
      "fences": 0,
      "groups": 0,
      "networks": 0,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null,
    "update_available": false
  }
}

Create/Update company badge salt

Creates a new badge salt. If a badge salt already exists, this will overwrite it with a new one. Users must have a role that permits managing the company to create a new badge salt.

Punto de llegada

POST /api/v4/companies/my/badges

Parametros

Name Description
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'announcements', 'announcements.user', 'billing', 'beacons', 'desktop_presences', 'fences', 'groups', 'favorites', 'networks', 'roles'

Solicitud

Ruta

POST /api/v4/companies/my/badges

Encabezados

Content-Type: application/json
Authorization: Bearer HmNi7XZfjrAtEg0QhmJ3nCqHAneejpWc-puPiQDriV4

cURL

curl "https://www.simpleinout.com/api/v4/companies/my/badges" -d '' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer HmNi7XZfjrAtEg0QhmJ3nCqHAneejpWc-puPiQDriV4"

Respuesta

Simulated Response

Campos de respuesta

Name Description
companies (object) the newly updated company attributes

Estado

200

Encabezados

ETag: W/"b6ae74ffb4cd57b4a75729dfc9fdb3b0"

Cuerpo

{
  "companies": {
    "id": "514832",
    "available_statuses": [
      "in",
      "out"
    ],
    "name": "Rath and Sons",
    "scheduled_statuses": true,
    "default_role_id": "2283747",
    "logo_url": null,
    "created_at": 1739375619,
    "badge_salt": "ac388dc684dc7497ef4c70cbad3a08a6",
    "theme": "blue",
    "super_company": null
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1731599619,
      "beacons": 1735142019,
      "desktop_presences": 1734450819,
      "favorites": 1732722819,
      "fences": 1732377219,
      "groups": 1739202819,
      "networks": 1736438019,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null,
    "update_available": false
  }
}

Create/Update company favorites

Creates company-wide favorites. If company favorites exist, they will be overwritten by the new ones. Users must have a role that permits managing the company to create favorites. Companies are limited to 20 favorites.

Punto de llegada

POST /api/v4/companies/my/favorites

Parametros

Name Description
favorites requerido (array) array of objects consisting of 'status' and 'comment'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'announcements', 'announcements.user', 'billing', 'beacons', 'desktop_presences', 'fences', 'groups', 'favorites', 'networks', 'roles'

Solicitud

Ruta

POST /api/v4/companies/my/favorites

Encabezados

Content-Type: application/json
Authorization: Bearer iXvF4J9rtltNVveayk7M3jys34OXYJQNmhO6l77zKeA

Cuerpo

{
  "favorites": [
    {
      "status": "in",
      "comment": "At Work"
    },
    {
      "status": "out",
      "comment": "On Vacation"
    }
  ],
  "expand": "favorites"
}

cURL

curl "https://www.simpleinout.com/api/v4/companies/my/favorites" -d '{"favorites":[{"status":"in","comment":"At Work"},{"status":"out","comment":"On Vacation"}],"expand":"favorites"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer iXvF4J9rtltNVveayk7M3jys34OXYJQNmhO6l77zKeA"

Respuesta

Simulated Response

Campos de respuesta

Name Description
companies (object) the updated company attributes

Estado

200

Encabezados

ETag: W/"c674fc2d2e8d9993ac1b5d81d5b54021"

Cuerpo

{
  "companies": {
    "id": "514834",
    "available_statuses": [
      "in",
      "out"
    ],
    "name": "Jacobs, Nitzsche and Cronin",
    "scheduled_statuses": true,
    "default_role_id": "2283755",
    "logo_url": null,
    "created_at": 1739375619,
    "badge_salt": null,
    "theme": "blue",
    "super_company": null,
    "favorites": [
      {
        "status": "in",
        "comment": "At Work"
      },
      {
        "status": "out",
        "comment": "On Vacation"
      }
    ]
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1732636419,
      "beacons": 1737474819,
      "desktop_presences": 1732895619,
      "favorites": 1739375619,
      "fences": 1730822019,
      "groups": 1733846019,
      "networks": 1731167619,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null,
    "update_available": false
  }
}

Retrieve the current company

Return the company the authorized user belongs to.

Punto de llegada

GET /api/v4/companies/my

Parametros

Name Description
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'announcements', 'announcements.user', 'billing', 'beacons', 'desktop_presences', 'fences', 'groups', 'favorites', 'networks', 'roles'

Solicitud

Ruta

GET /api/v4/companies/my

Encabezados

Content-Type: application/json
Authorization: Bearer pmQyZa6WIti_bP_C-IPEMNZFLhcKTgzB3r5E_goaw1Y

cURL

curl -g "https://www.simpleinout.com/api/v4/companies/my" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer pmQyZa6WIti_bP_C-IPEMNZFLhcKTgzB3r5E_goaw1Y"

Respuesta

Simulated Response

Campos de respuesta

Name Description
companies[name] (string) the authorized user's company name
companies[logo_url] (string) url of an image to be used as a fullscreen logo
companies[default_role_id] (string) the unique identifier for the default role
companies[scheduled_statuses] (boolean) whether Scheduled Statuses feature is enabled
companies[available_statuses] (array) the statuses that are available to the company
companies[badge_salt] (string) badge salt for TimeClock
companies[theme] (string) the currently selected theme color for the company
companies[super_company] (object) id and name of the super-company
companies[created_at] (integer) epoch time the company was created

Estado

200

Encabezados

ETag: W/"11c3a478309bb05e57e502da50b3131f"
Last-Modified: Wed, 12 Feb 2025 15:53:39 GMT

Cuerpo

{
  "companies": {
    "id": "514833",
    "available_statuses": [
      "in",
      "out"
    ],
    "name": "Littel, Gerlach and Veum",
    "scheduled_statuses": true,
    "default_role_id": "2283751",
    "logo_url": null,
    "created_at": 1739375619,
    "badge_salt": null,
    "theme": "blue",
    "super_company": null
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1734018819,
      "beacons": 1732031619,
      "desktop_presences": 1735746819,
      "favorites": 1732895619,
      "fences": 1735574019,
      "groups": 1732636419,
      "networks": 1731513219,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null,
    "update_available": false
  }
}

Desktop Presences

Create a desktop presence

Creates a new desktop presence. Once this desktop presence is created, it will appear in the company’s desktop presences within the Simple In/Out apps. Users must have a role that permits managing the company to create desktop presences. Companies are limited to 100 desktop presences.

Punto de llegada

POST /api/v4/desktop_presences

Parametros

Name Description
desktop_presence[name] requerido (string) the name of the desktop presences, no longer than 44 characters
desktop_presence[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
desktop_presence[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
desktop_presence[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
desktop_presence[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Solicitud

Ruta

POST /api/v4/desktop_presences

Encabezados

Content-Type: application/json
Authorization: Bearer xvHNNmu0Ten5lEZqpBhJqXsB9s-qVU2oCKfdpTXD5qA

Cuerpo

{
  "desktop_presence": {
    "name": "Home"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/desktop_presences" -d '{"desktop_presence":{"name":"Home"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer xvHNNmu0Ten5lEZqpBhJqXsB9s-qVU2oCKfdpTXD5qA"

Respuesta

Simulated Response

Campos de respuesta

Name Description
desktop_presences (object) the newly created desktop presence attributes

Estado

201

Encabezados

ETag: W/"a875b3495d8ff0d7c6da0aafb4652ab4"

Cuerpo

{
  "desktop_presences": {
    "id": "10251",
    "name": "Home",
    "comment_on_entry": "In at Home",
    "comment_on_exit": "Left Home",
    "idle_time": 10,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1739375619,
    "updated_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1734882819,
      "beacons": 1734623619,
      "desktop_presences": 1739375619,
      "favorites": 1734278019,
      "fences": 1734018819,
      "groups": 1735228419,
      "networks": 1732636419,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Delete a desktop presence

Deletes an existing desktop presence. Users must have a role that permits managing the company to delete desktop presences.

Punto de llegada

DELETE /api/v4/desktop_presences/:id

Solicitud

Ruta

DELETE /api/v4/desktop_presences/10250

Encabezados

Content-Type: application/json
Authorization: Bearer daRJ1Z4NNVDdjSFoo9zDjwn3qwrq1xNxofSY_ezMuaE

cURL

curl "https://www.simpleinout.com/api/v4/desktop_presences/10250" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer daRJ1Z4NNVDdjSFoo9zDjwn3qwrq1xNxofSY_ezMuaE"

Respuesta

Simulated Response

Estado

204

List all desktop presences

Return a list of all the desktop presences belonging to the company.

Punto de llegada

GET /api/v4/desktop_presences

Parametros

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/desktop_presences

Encabezados

Content-Type: application/json
Authorization: Bearer 01Sc3JnchqKmvjE55mCO3du2tGm4cg6WCKxalWkiKQQ

cURL

curl -g "https://www.simpleinout.com/api/v4/desktop_presences" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 01Sc3JnchqKmvjE55mCO3du2tGm4cg6WCKxalWkiKQQ"

Respuesta

Simulated Response

Campos de respuesta

Name Description
desktop_presences (array) an array of desktop presences

Estado

200

Encabezados

ETag: W/"17fbb1202a2d757969ec4871fc762b83"
Last-Modified: Wed, 12 Feb 2025 15:53:39 GMT

Cuerpo

{
  "desktop_presences": [
    {
      "id": "10248",
      "name": "2 - Lake Odisside",
      "comment_on_entry": "In at 2 - Lake Odisside",
      "comment_on_exit": "Left 2 - Lake Odisside",
      "idle_time": 10,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1739375619,
      "updated_at": 1739375619
    },
    {
      "id": "10249",
      "name": "3 - Michalland",
      "comment_on_entry": "In at 3 - Michalland",
      "comment_on_exit": "Left 3 - Michalland",
      "idle_time": 10,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1739375619,
      "updated_at": 1739375619
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/desktop_presences",
      "last_href": "http://example.org/api/v4/desktop_presences",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1736438019,
      "beacons": 1736697219,
      "desktop_presences": 1739375619,
      "favorites": 1738770819,
      "fences": 1732550019,
      "groups": 1732895619,
      "networks": 1738857219,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Update a desktop presence

Updates an existing desktop presence. Users must have a role that permits managing the company to update desktop presences.

Punto de llegada

PATCH /api/v4/desktop_presences/:id

Parametros

Name Description
desktop_presence[name] (string) the name of the desktop presence, no longer than 44 characters
desktop_presence[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
desktop_presence[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
desktop_presence[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
desktop_presence[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Solicitud

Ruta

PATCH /api/v4/desktop_presences/10252

Encabezados

Content-Type: application/json
Authorization: Bearer RO0hqK2xK-0S5CyuFaYq-YKjMeHjH9huHOcZoqFlCYQ

Cuerpo

{
  "desktop_presence": {
    "name": "Home"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/desktop_presences/10252" -d '{"desktop_presence":{"name":"Home"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer RO0hqK2xK-0S5CyuFaYq-YKjMeHjH9huHOcZoqFlCYQ"

Respuesta

Simulated Response

Campos de respuesta

Name Description
desktop_presences (object) the newly updated desktop presence attributes

Estado

200

Encabezados

ETag: W/"0ab59c2d00b2b7fad2382f8334e49fcb"

Cuerpo

{
  "desktop_presences": {
    "id": "10252",
    "name": "Home",
    "comment_on_entry": "In at 5 - New Brett",
    "comment_on_exit": "Left 5 - New Brett",
    "idle_time": 10,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1739375619,
    "updated_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1737906819,
      "beacons": 1734623619,
      "desktop_presences": 1739375619,
      "favorites": 1736870019,
      "fences": 1737388419,
      "groups": 1735401219,
      "networks": 1736006019,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Devices

Create a device

Creates a new device.

Punto de llegada

POST /api/v4/devices

Parametros

Name Description
device[os] requerido (string) the platform this device operates within, must be either 'ios', 'android', 'mac', or 'windows'
device[token] requerido (string) the unique identifier provided by the platform for notifications
device[location_token] (string) the unique identifier provided by iOS for location notifications, only allowed for ios devices and location pushes will start (or stop if set to null) within 5 minutes
device[notifications_enabled] (boolean) whether any notifications should be sent, defaults to true
device[on_reminder] (boolean) whether any reminder notifications should be sent, defaults to true
device[deliver_status_notifications] (boolean) whether automatic status update notifications should be sent, defaults to true
device[active_time_attributes][enabled] (boolean) whether active time is enabled, defaults to false
device[active_time_attributes][time_range] (string) time range in 24h time with .. delimiter (example: 6:00..17:00), required if enabled is true
device[active_time_attributes][time_zone] (string) one of our supported time zone strings, required if enabled is true
device[active_time_attributes][wdays] (string) days that are active for start time in the format '0123456', which each number equal to a weekday (0=Sunday, 1=Monday, etc), required if enabled is true
device[active_time_attributes][on_push] (boolean) whether active time is used for followed user notifications, defaults to true
device[active_time_attributes][on_reminder] (boolean) whether active time is used for reminder notifications, defaults to true
device[active_time_attributes][on_safety] (boolean) whether active time is used for safety notifications, defaults to true
device[active_time_attributes][on_update] (boolean) whether active time is used for automatic updates, defaults to true

Solicitud

Ruta

POST /api/v4/devices

Encabezados

Content-Type: application/json
Authorization: Bearer lBBfuRWgB2EbxObCtbalquF4m2OtKaRbF6f6-Zx5158

Cuerpo

{
  "device": {
    "os": "ios",
    "token": "687E5BA0-FC3B-4196-A031-9A5005B1B474",
    "notifications_enabled": true,
    "active_time_attributes": {
      "enabled": false
    }
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/devices" -d '{"device":{"os":"ios","token":"687E5BA0-FC3B-4196-A031-9A5005B1B474","notifications_enabled":true,"active_time_attributes":{"enabled":false}}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer lBBfuRWgB2EbxObCtbalquF4m2OtKaRbF6f6-Zx5158"

Respuesta

Simulated Response

Campos de respuesta

Name Description
devices (object) the newly created device attributes

Estado

201

Encabezados

ETag: W/"861c49dedd3dc87d378741c90da2ebfe"

Cuerpo

{
  "devices": {
    "id": "54419",
    "token": "687E5BA0-FC3B-4196-A031-9A5005B1B474",
    "location_token": null,
    "os": "ios",
    "notifications_enabled": true,
    "on_reminder": true,
    "deliver_status_notifications": true,
    "follow_everyone": false,
    "follow_users": [],
    "active_time": {
      "enabled": false,
      "on_push": true,
      "on_reminder": true,
      "on_safety": true,
      "on_update": true,
      "wdays": null,
      "time_range": null,
      "time_zone": null
    },
    "created_at": 1739375616,
    "updated_at": 1739375616
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1731167616,
      "beacons": 1734537216,
      "desktop_presences": 1732895616,
      "favorites": 1731513216,
      "fences": 1731686016,
      "groups": 1737474816,
      "networks": 1738684416,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null,
    "update_available": false
  }
}

Delete a device

Deletes an existing device.

Punto de llegada

DELETE /api/v4/devices/:id

Solicitud

Ruta

DELETE /api/v4/devices/54423

Encabezados

Content-Type: application/json
Authorization: Bearer ZJf63vCtbZwwlox7wxHnwmbLCa1HqtdTpZ2UVA-kiOU

cURL

curl "https://www.simpleinout.com/api/v4/devices/54423" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer ZJf63vCtbZwwlox7wxHnwmbLCa1HqtdTpZ2UVA-kiOU"

Respuesta

Simulated Response

Estado

204

Delete a heart beat

Deletes the device’s heart beat to prevent status updates after automatic updates are disabled.

Punto de llegada

DELETE /api/v4/devices/:device_id/heart_beat

Solicitud

Ruta

DELETE /api/v4/devices/54422/heart_beat

Encabezados

Content-Type: application/json
Authorization: Bearer _J8CQdYE7KHnpJr1_6asslJwmlGo47ju4fDvktOMKnU

cURL

curl "https://www.simpleinout.com/api/v4/devices/54422/heart_beat" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer _J8CQdYE7KHnpJr1_6asslJwmlGo47ju4fDvktOMKnU"

Respuesta

Simulated Response

Estado

204

Follow a specific user

Receive notifications on this device for all users in the company. Users must have a role that permits following users, and the company must be on a plan that allows for followed user notifications.

Punto de llegada

POST /api/v4/devices/:id/follow/users/:user_id

Solicitud

Ruta

POST /api/v4/devices/54420/follow/users/941665

Encabezados

Content-Type: application/json
Authorization: Bearer TNs15GmFr2lYpzW_-Du0w_GlWebKi5F7gyrIhWgrd0o

cURL

curl "https://www.simpleinout.com/api/v4/devices/54420/follow/users/941665" -d '' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer TNs15GmFr2lYpzW_-Du0w_GlWebKi5F7gyrIhWgrd0o"

Respuesta

Simulated Response

Campos de respuesta

Name Description
devices (object) the device attributes

Estado

200

Encabezados

ETag: W/"7f1e800efa6fdedb9588437e73737dfc"

Cuerpo

{
  "devices": {
    "id": "54420",
    "token": "A7A9D03F-25BA-4CA6-9247-A0F1110CE1DF",
    "location_token": null,
    "os": "ios",
    "notifications_enabled": true,
    "on_reminder": true,
    "deliver_status_notifications": true,
    "follow_everyone": false,
    "follow_users": [
      "941665"
    ],
    "active_time": {
      "enabled": false,
      "on_push": true,
      "on_reminder": true,
      "on_safety": true,
      "on_update": true,
      "wdays": "12345",
      "time_range": "6:00..19:00",
      "time_zone": "America/Chicago"
    },
    "created_at": 1739375617,
    "updated_at": 1739375617
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1738857217,
      "beacons": 1732118017,
      "desktop_presences": 1733932417,
      "favorites": 1737474817,
      "fences": 1739030017,
      "groups": 1732118017,
      "networks": 1733241217,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null,
    "update_available": false
  }
}

Follow all users

Punto de llegada

POST /api/v4/devices/:id/follow/all

Solicitud

Ruta

POST /api/v4/devices/54414/follow/all

Encabezados

Content-Type: application/json
Authorization: Bearer mxJ47UeJ-Gzl9itT83QnVgETR8UPAIFvTWEM2Km-1xI

cURL

curl "https://www.simpleinout.com/api/v4/devices/54414/follow/all" -d '' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer mxJ47UeJ-Gzl9itT83QnVgETR8UPAIFvTWEM2Km-1xI"

Respuesta

Simulated Response

Campos de respuesta

Name Description
devices (object) the newly created device attributes

Estado

200

Encabezados

ETag: W/"5ccf0fbb039bfed3dec9b440794b00a8"

Cuerpo

{
  "devices": {
    "id": "54414",
    "token": "9336EEA6-12E7-47A6-8831-198F18327F43",
    "location_token": null,
    "os": "ios",
    "notifications_enabled": true,
    "on_reminder": true,
    "deliver_status_notifications": true,
    "follow_everyone": true,
    "follow_users": [],
    "active_time": {
      "enabled": false,
      "on_push": true,
      "on_reminder": true,
      "on_safety": true,
      "on_update": true,
      "wdays": "12345",
      "time_range": "6:00..19:00",
      "time_zone": "America/Chicago"
    },
    "created_at": 1739375616,
    "updated_at": 1739375616
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1734623616,
      "beacons": 1731686016,
      "desktop_presences": 1737042816,
      "favorites": 1737820416,
      "fences": 1734623616,
      "groups": 1736783616,
      "networks": 1731599616,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null,
    "update_available": false
  }
}

Follow specific users

Receive notifications on this device for all users passed in. This allows for several users to be able to be followed individually within one API call. Please note you can only follow a user once, otherwise you will receive a taken validation error. Users must have a role that permits following users, and the company must be on a plan that allows for followed user notifications.

Punto de llegada

POST /api/v4/devices/:id/follow/users

Parametros

Name Description
user_ids (array) list of user ids within the authorized user's company (cannot be the authorized user's id)

Solicitud

Ruta

POST /api/v4/devices/54416/follow/users

Encabezados

Content-Type: application/json
Authorization: Bearer X0mRhLr_SYKng_QNxlh4NtJFX6R-nLIOKWjjo88kn78

Cuerpo

{
  "user_ids": [
    941651,
    941652
  ]
}

cURL

curl "https://www.simpleinout.com/api/v4/devices/54416/follow/users" -d '{"user_ids":[941651,941652]}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer X0mRhLr_SYKng_QNxlh4NtJFX6R-nLIOKWjjo88kn78"

Respuesta

Simulated Response

Campos de respuesta

Name Description
devices (object) the device attributes

Estado

200

Encabezados

ETag: W/"170d005df41486d7e8ade3883c498af5"

Cuerpo

{
  "devices": {
    "id": "54416",
    "token": "490AA635-9AED-443F-A9F1-CCFCFE46192E",
    "location_token": null,
    "os": "ios",
    "notifications_enabled": true,
    "on_reminder": true,
    "deliver_status_notifications": true,
    "follow_everyone": false,
    "follow_users": [
      "941651",
      "941652"
    ],
    "active_time": {
      "enabled": false,
      "on_push": true,
      "on_reminder": true,
      "on_safety": true,
      "on_update": true,
      "wdays": "12345",
      "time_range": "6:00..19:00",
      "time_zone": "America/Chicago"
    },
    "created_at": 1739375616,
    "updated_at": 1739375616
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1732895616,
      "beacons": 1734018816,
      "desktop_presences": 1738857216,
      "favorites": 1735574016,
      "fences": 1732722816,
      "groups": 1735746816,
      "networks": 1738079616,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null,
    "update_available": false
  }
}

Retrieve a device

Retrieves an existing device.

Punto de llegada

GET /api/v4/devices/:id

Solicitud

Ruta

GET /api/v4/devices/54425

Encabezados

Content-Type: application/json
Authorization: Bearer Rsmu-i9s-I_zn08uqAZrlJ19SLe7hNggSjMvManW9Q4
If-None-Match: 

cURL

curl -g "https://www.simpleinout.com/api/v4/devices/54425" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer Rsmu-i9s-I_zn08uqAZrlJ19SLe7hNggSjMvManW9Q4" \
	-H "If-None-Match: "

Respuesta

Simulated Response

Campos de respuesta

Name Description
devices (object) the retrieved device

Estado

200

Encabezados

ETag: W/"73a6f7ec5245378ecd8a07c4146a0530"

Cuerpo

{
  "devices": {
    "id": "54425",
    "token": "3B187366-1F7F-4D48-9250-59E49F5151B3",
    "location_token": null,
    "os": "ios",
    "notifications_enabled": true,
    "on_reminder": true,
    "deliver_status_notifications": true,
    "follow_everyone": false,
    "follow_users": [],
    "active_time": {
      "enabled": false,
      "on_push": true,
      "on_reminder": true,
      "on_safety": true,
      "on_update": true,
      "wdays": "12345",
      "time_range": "6:00..19:00",
      "time_zone": "America/Chicago"
    },
    "created_at": 1739375617,
    "updated_at": 1739375617
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1730994817,
      "beacons": 1734623617,
      "desktop_presences": 1738770817,
      "favorites": 1731772417,
      "fences": 1735055617,
      "groups": 1737820417,
      "networks": 1733586817,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null,
    "update_available": false
  }
}

Retrieve followed users

Retrieves an array of users that this device follows. This list always contains only the ‘id’ and ‘name’ of the user in alphabetic order according to name.

Punto de llegada

GET /api/v4/devices/:id/follow/users/followed

Solicitud

Ruta

GET /api/v4/devices/54418/follow/users/followed

Encabezados

Content-Type: application/json
Authorization: Bearer VKvxKA_9bff1N81Xz9tPulidGM4X9AK6lqINd81P5fc

cURL

curl -g "https://www.simpleinout.com/api/v4/devices/54418/follow/users/followed" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer VKvxKA_9bff1N81Xz9tPulidGM4X9AK6lqINd81P5fc"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (object) the retrieved users, only including their 'id' and 'name' fields

Estado

200

Encabezados

ETag: W/"a643317d7f1387c8d59f717f576ae755"

Cuerpo

{
  "users": [
    {
      "id": "941660",
      "name": "Catrina Swaniawski"
    },
    {
      "id": "941662",
      "name": "Eda Johns"
    },
    {
      "id": "941661",
      "name": "Norman Hermann"
    },
    {
      "id": "941659",
      "name": "Stephania Hayes"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 4,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/devices/54418/follow/users/followed?id=54418",
      "last_href": "http://example.org/api/v4/devices/54418/follow/users/followed?id=54418",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1733759616,
      "beacons": 1738770816,
      "desktop_presences": 1734450816,
      "favorites": 1734537216,
      "fences": 1734018816,
      "groups": 1733500416,
      "networks": 1732031616,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null,
    "update_available": false
  }
}

Retrieve unfollowed users

Retrieves an array of users that this device does not yet follow. This list always contains only the ‘id’ and ‘name’ of the user in alphabetic order according to name.

Punto de llegada

GET /api/v4/devices/:id/follow/users/available

Solicitud

Ruta

GET /api/v4/devices/54417/follow/users/available

Encabezados

Content-Type: application/json
Authorization: Bearer eobpIx1_5D0E5sa-_Q3JsK4Ai5s4gPprYe6gIXSVUSs

cURL

curl -g "https://www.simpleinout.com/api/v4/devices/54417/follow/users/available" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer eobpIx1_5D0E5sa-_Q3JsK4Ai5s4gPprYe6gIXSVUSs"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (object) the retrieved users, only including their 'id' and 'name' fields

Estado

200

Encabezados

ETag: W/"9cbdb789402b5baf2ea9e50de3dc089e"

Cuerpo

{
  "users": [
    {
      "id": "941655",
      "name": "Cruz Bashirian IV"
    },
    {
      "id": "941657",
      "name": "Herman Becker"
    },
    {
      "id": "941654",
      "name": "Jamey Runte"
    },
    {
      "id": "941656",
      "name": "Norris Lebsack"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 4,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/devices/54417/follow/users/available?id=54417",
      "last_href": "http://example.org/api/v4/devices/54417/follow/users/available?id=54417",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1739202816,
      "beacons": 1738770816,
      "desktop_presences": 1739030016,
      "favorites": 1731167616,
      "fences": 1734450816,
      "groups": 1731167616,
      "networks": 1737129216,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null,
    "update_available": false
  }
}

Unfollow a specific user

Stop receiving notifications on this device for all users in the company. Users must have a role that permits following users, and the company must be on a plan that allows for followed user notifications.

Punto de llegada

DELETE /api/v4/devices/:id/follow/users/:user_id

Solicitud

Ruta

DELETE /api/v4/devices/54415/follow/users/941649

Encabezados

Content-Type: application/json
Authorization: Bearer mK-g-jqs3ok-KYx2lrzYR4MwQjBhTEYDg1vSNfpN4d0

cURL

curl "https://www.simpleinout.com/api/v4/devices/54415/follow/users/941649" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer mK-g-jqs3ok-KYx2lrzYR4MwQjBhTEYDg1vSNfpN4d0"

Respuesta

Simulated Response

Campos de respuesta

Name Description
devices (object) the device attributes

Estado

200

Encabezados

ETag: W/"840364c0c74487e8430808b54c0c47e4"

Cuerpo

{
  "devices": {
    "id": "54415",
    "token": "A6EDB48A-087B-44E9-825D-99A596473B5C",
    "location_token": null,
    "os": "ios",
    "notifications_enabled": true,
    "on_reminder": true,
    "deliver_status_notifications": true,
    "follow_everyone": false,
    "follow_users": [],
    "active_time": {
      "enabled": false,
      "on_push": true,
      "on_reminder": true,
      "on_safety": true,
      "on_update": true,
      "wdays": "12345",
      "time_range": "6:00..19:00",
      "time_zone": "America/Chicago"
    },
    "created_at": 1739375616,
    "updated_at": 1739375616
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1737388416,
      "beacons": 1732118016,
      "desktop_presences": 1739116416,
      "favorites": 1733932416,
      "fences": 1732550016,
      "groups": 1738511616,
      "networks": 1735314816,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null,
    "update_available": false
  }
}

Unfollow all users

Stop receiving notifications on this device for all users in the company. Users must have a role that permits following users, and the company must be on a plan that allows for followed user notifications.

Punto de llegada

DELETE /api/v4/devices/:id/follow/all

Solicitud

Ruta

DELETE /api/v4/devices/54421/follow/all

Encabezados

Content-Type: application/json
Authorization: Bearer OlJslK3bl4r4126ZSFF2fNj_zE17g67OFuwLvmSaGbM

cURL

curl "https://www.simpleinout.com/api/v4/devices/54421/follow/all" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer OlJslK3bl4r4126ZSFF2fNj_zE17g67OFuwLvmSaGbM"

Respuesta

Simulated Response

Estado

200

Encabezados

ETag: W/"1f3684c5b3298b44a6131bb9365e3c8f"

Cuerpo

{
  "devices": {
    "id": "54421",
    "token": "9B61D9F8-40DD-4DA4-B17E-1AAB61354D4A",
    "location_token": null,
    "os": "ios",
    "notifications_enabled": true,
    "on_reminder": true,
    "deliver_status_notifications": true,
    "follow_everyone": false,
    "follow_users": [],
    "active_time": {
      "enabled": false,
      "on_push": true,
      "on_reminder": true,
      "on_safety": true,
      "on_update": true,
      "wdays": "12345",
      "time_range": "6:00..19:00",
      "time_zone": "America/Chicago"
    },
    "created_at": 1739375617,
    "updated_at": 1739375617
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1733414017,
      "beacons": 1732895617,
      "desktop_presences": 1735833217,
      "favorites": 1733846017,
      "fences": 1730994817,
      "groups": 1732204417,
      "networks": 1733932417,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null,
    "update_available": false
  }
}

Unfollow specific users

Exclude notifications on this device for all users passed in. This allows for several users to be able to be unfollowed individually within one API call. Users must have a role that permits following users, and the company must be on a plan that allows for followed user notifications.

Punto de llegada

DELETE /api/v4/devices/:id/follow/users

Parametros

Name Description
user_ids (array) list of user ids within the authorized user's company (cannot be the authorized user's id)

Solicitud

Ruta

DELETE /api/v4/devices/54413/follow/users

Encabezados

Content-Type: application/json
Authorization: Bearer OqnKpp3BAWn0Tesimrxz968yI8u05wOahbP-s9XFlFA

Cuerpo

{
  "user_ids": [
    941645,
    941646
  ]
}

cURL

curl "https://www.simpleinout.com/api/v4/devices/54413/follow/users" -d '{"user_ids":[941645,941646]}' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer OqnKpp3BAWn0Tesimrxz968yI8u05wOahbP-s9XFlFA"

Respuesta

Simulated Response

Campos de respuesta

Name Description
devices (object) the device attributes

Estado

200

Encabezados

ETag: W/"5a639b93025e2f6b519739b5c4e56ba3"

Cuerpo

{
  "devices": {
    "id": "54413",
    "token": "F45A7229-B896-4415-B214-7B204E0CE1FC",
    "location_token": null,
    "os": "ios",
    "notifications_enabled": true,
    "on_reminder": true,
    "deliver_status_notifications": true,
    "follow_everyone": false,
    "follow_users": [],
    "active_time": {
      "enabled": false,
      "on_push": true,
      "on_reminder": true,
      "on_safety": true,
      "on_update": true,
      "wdays": "12345",
      "time_range": "6:00..19:00",
      "time_zone": "America/Chicago"
    },
    "created_at": 1739375616,
    "updated_at": 1739375616
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1734796416,
      "beacons": 1735487616,
      "desktop_presences": 1736351616,
      "favorites": 1733759616,
      "fences": 1739030016,
      "groups": 1737474816,
      "networks": 1735314816,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null,
    "update_available": false
  }
}

Update a device

Updates an existing device. If the device token is removed with an update, all the users that this device was following for notifications will also be removed.

Punto de llegada

PATCH /api/v4/devices/:id

Parametros

Name Description
device[token] (string) the unique identifier provided by the platform for notifications
device[location_token] (string) the unique identifier provided by iOS for location notifications, only allowed for ios devices and location pushes will start (or stop if set to null) within 5 minutes
device[notifications_enabled] (boolean) whether any notifications should be sent
device[on_reminder] (boolean) whether any reminder notifications should be sent
device[deliver_status_notifications] (boolean) whether automatic status update notifications should be sent
device[active_time_attributes][enabled] (boolean) whether active time is enabled, defaults to false
device[active_time_attributes][time_range] (string) time range in 24h time with .. delimiter (example: 6:00..17:00), required if enabled is true
device[active_time_attributes][time_zone] (string) one of our supported time zone strings, required if enabled is true
device[active_time_attributes][wdays] (string) days that are active for start time in the format '0123456', which each number equal to a weekday (0=Sunday, 1=Monday, etc), required if enabled is true
device[active_time_attributes][on_push] (boolean) whether active time is used for followed user notifications, defaults to true
device[active_time_attributes][on_reminder] (boolean) whether active time is used for reminder notifications, defaults to true
device[active_time_attributes][on_safety] (boolean) whether active time is used for safety notifications, defaults to true
device[active_time_attributes][on_update] (boolean) whether active time is used for automatic updates, defaults to true

Solicitud

Ruta

PATCH /api/v4/devices/54424

Encabezados

Content-Type: application/json
Authorization: Bearer o5fM1E-Y74mht_vtA3a0zpw2oZnQPLM5BDF-cWtIHIU

Cuerpo

{
  "device": {
    "notifications_enabled": true
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/devices/54424" -d '{"device":{"notifications_enabled":true}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer o5fM1E-Y74mht_vtA3a0zpw2oZnQPLM5BDF-cWtIHIU"

Respuesta

Simulated Response

Campos de respuesta

Name Description
devices (object) the newly created device attributes

Estado

200

Encabezados

ETag: W/"791b983234675c09931a92e952ba0cfb"

Cuerpo

{
  "devices": {
    "id": "54424",
    "token": "20E4D7B0-D31B-4B48-AB22-F60CDDB22BC1",
    "location_token": null,
    "os": "ios",
    "notifications_enabled": true,
    "on_reminder": true,
    "deliver_status_notifications": true,
    "follow_everyone": false,
    "follow_users": [],
    "active_time": {
      "enabled": false,
      "on_push": true,
      "on_reminder": true,
      "on_safety": true,
      "on_update": true,
      "wdays": "12345",
      "time_range": "6:00..19:00",
      "time_zone": "America/Chicago"
    },
    "created_at": 1739375617,
    "updated_at": 1739375617
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1734018817,
      "beacons": 1739202817,
      "desktop_presences": 1732463617,
      "favorites": 1738943617,
      "fences": 1736956417,
      "groups": 1736697217,
      "networks": 1734105217,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null,
    "update_available": false
  }
}

Futures

Delete a future status

Deletes an existing scheduled status. The company must have scheduled statuses turned on. Users must have a role that permits managing their own scheduled statuses to delete one of their scheduled statuses. Users must have a role that permits managing the scheduled statuses of others to delete another user’s scheduled status.

Punto de llegada

DELETE /api/v4/futures/:id

Solicitud

Ruta

DELETE /api/v4/futures/30095

Encabezados

Content-Type: application/json
Authorization: Bearer looQGY_McSC7OyAJRy7ugjYKL5MRfAzUJNdGb4YQY98

cURL

curl "https://www.simpleinout.com/api/v4/futures/30095" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer looQGY_McSC7OyAJRy7ugjYKL5MRfAzUJNdGb4YQY98"

Respuesta

Simulated Response

Estado

204

List future statuses

List all the scheduled statuses. The company must have scheduled statuses turned on. Users must have a role that permits viewing the scheduled statuses of others or only the authorized user’s scheduled statuses will be returned.

Punto de llegada

GET /api/v4/futures

Parametros

Name Description
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results
status (string) the status: 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
comment (string) the comment, case sensitive, included with the status change
apply_at (string) a date range string for the time this status will be added
user_id (string) the ID of a particular user
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'apply_at', 'status', 'comment'"
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'

Solicitud

Ruta

GET /api/v4/futures

Encabezados

Content-Type: application/json
Authorization: Bearer Cc9NP8EYJM8on4OQ_v9JoQXdsIuB7uRMPXL-l5xkGDw

cURL

curl -g "https://www.simpleinout.com/api/v4/futures" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Cc9NP8EYJM8on4OQ_v9JoQXdsIuB7uRMPXL-l5xkGDw"

Respuesta

Simulated Response

Campos de respuesta

Name Description
futures (array) an array of matching future statuses

Estado

200

Encabezados

ETag: W/"1ec1dc113e52a55d6639c7a30f2d6771"
Last-Modified: Wed, 12 Feb 2025 15:53:37 GMT

Cuerpo

{
  "futures": [
    {
      "id": "30093",
      "status": "out",
      "comment": "On Vacation, back Monday",
      "completed": false,
      "apply_at": 1741788000,
      "end_at": 1742220000,
      "user_id": "941679",
      "changed_by_user_id": null
    },
    {
      "id": "30094",
      "status": "out",
      "comment": "At the conference this week",
      "completed": false,
      "apply_at": 1755007200,
      "end_at": null,
      "user_id": "941679",
      "changed_by_user_id": null
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/futures",
      "last_href": "http://example.org/api/v4/futures",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1737993217,
      "beacons": 1735314817,
      "desktop_presences": 1732636417,
      "favorites": 1732722817,
      "fences": 1734796417,
      "groups": 1732722817,
      "networks": 1736006017,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null
  }
}

Geofences

Create a fence

Creates a new fence. Once this fence is created, it will appear in the company’s fences within the Simple In/Out apps and website. Users must have a role that permits managing the company to create fences. Companies are limited to 150 Geofences.

Punto de llegada

POST /api/v4/fences

Parametros

Name Description
fence[name] requerido (string) the name of the fence
fence[latitude] requerido (float) the latitude of the center point of the fence
fence[longitude] requerido (float) the longitude of the center point of the fence
fence[radius] requerido (integer) the radius of the fence, in meters
fence[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
fence[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
fence[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
fence[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Solicitud

Ruta

POST /api/v4/fences

Encabezados

Content-Type: application/json
Authorization: Bearer FKBz7_XU7CLo6RxcvLCtHk2_ReWrqyBOFBTcbNFxlBw

Cuerpo

{
  "fence": {
    "name": "My Office",
    "latitude": 46.877931,
    "longitude": -96.787459,
    "radius": 150
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/fences" -d '{"fence":{"name":"My Office","latitude":46.877931,"longitude":-96.787459,"radius":150}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer FKBz7_XU7CLo6RxcvLCtHk2_ReWrqyBOFBTcbNFxlBw"

Respuesta

Simulated Response

Campos de respuesta

Name Description
fences (object) the newly created fence attributes

Estado

201

Encabezados

ETag: W/"b91d8b601590495d38593529e58d2e97"

Cuerpo

{
  "fences": {
    "id": "9205",
    "name": "My Office",
    "latitude": "46.877931",
    "longitude": "-96.787459",
    "radius": 150,
    "comment_on_entry": "In at My Office",
    "comment_on_exit": "Left My Office",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1739375620,
    "updated_at": 1739375620
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1732636420,
      "beacons": 1739030020,
      "desktop_presences": 1737215620,
      "favorites": 1737820420,
      "fences": 1739375620,
      "groups": 1732895620,
      "networks": 1732895620,
      "roles": 1739375620,
      "settings": 1739375620
    },
    "emergency": null
  }
}

Delete a fence

Deletes an existing fence. Users must have a role that permits managing the company to delete fences.

Punto de llegada

DELETE /api/v4/fences/:id

Solicitud

Ruta

DELETE /api/v4/fences/9203

Encabezados

Content-Type: application/json
Authorization: Bearer yiuWlby80luFgDnKxiyFPsbPtpoNcElsKadYH_TH3gI

cURL

curl "https://www.simpleinout.com/api/v4/fences/9203" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer yiuWlby80luFgDnKxiyFPsbPtpoNcElsKadYH_TH3gI"

Respuesta

Simulated Response

Estado

204

List all fences

Return a list of all the fences belonging to the company.

Punto de llegada

GET /api/v4/fences

Parametros

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name', 'radius
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/fences

Encabezados

Content-Type: application/json
Authorization: Bearer pnXTlBPVnW-YxbfHvEEATR42SvHYTkLbTIo13emZ698

cURL

curl -g "https://www.simpleinout.com/api/v4/fences" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer pnXTlBPVnW-YxbfHvEEATR42SvHYTkLbTIo13emZ698"

Respuesta

Simulated Response

Campos de respuesta

Name Description
fences (array) an array of fences

Estado

200

Encabezados

ETag: W/"e1c01a8243c08c986919deafdb0fd1e3"
Last-Modified: Wed, 12 Feb 2025 15:53:40 GMT

Cuerpo

{
  "fences": [
    {
      "id": "9206",
      "name": "3 - New Wilfredo",
      "latitude": "-47.0642475029",
      "longitude": "73.420999787",
      "radius": 8027,
      "comment_on_entry": "In at 3 - New Wilfredo",
      "comment_on_exit": "Left 3 - New Wilfredo",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1739375620,
      "updated_at": 1739375620
    },
    {
      "id": "9207",
      "name": "4 - East Londa",
      "latitude": "-22.0226639949",
      "longitude": "-31.1079815617",
      "radius": 17318,
      "comment_on_entry": "In at 4 - East Londa",
      "comment_on_exit": "Left 4 - East Londa",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1739375620,
      "updated_at": 1739375620
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/fences",
      "last_href": "http://example.org/api/v4/fences",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1733241220,
      "beacons": 1735228420,
      "desktop_presences": 1730822020,
      "favorites": 1739116420,
      "fences": 1739375620,
      "groups": 1734191620,
      "networks": 1732550020,
      "roles": 1739375620,
      "settings": 1739375620
    },
    "emergency": null
  }
}

Update a fence

Updates an existing fence. Users must have a role that permits managing the company to update fences.

Punto de llegada

PATCH /api/v4/fences/:id

Parametros

Name Description
fence[name] (string) the name of the fence
fence[latitude] (float) the latitude of the center point of the fence
fence[longitude] (float) the longitude of the center point of the fence
fence[radius] (integer) the radius of the fence, in meters
fence[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
fence[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
fence[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
fence[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Solicitud

Ruta

PATCH /api/v4/fences/9204

Encabezados

Content-Type: application/json
Authorization: Bearer u79OV1pFdYU5DE6yCVBZGQ3dmgSZq0_xaq_Y9nBHLqg

Cuerpo

{
  "fence": {
    "name": "My Renamed Geofence"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/fences/9204" -d '{"fence":{"name":"My Renamed Geofence"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer u79OV1pFdYU5DE6yCVBZGQ3dmgSZq0_xaq_Y9nBHLqg"

Respuesta

Simulated Response

Campos de respuesta

Name Description
fences (object) the newly updated fence attributes

Estado

200

Encabezados

ETag: W/"26ef8bf0e377dc3c8015fee2fc07fb09"

Cuerpo

{
  "fences": {
    "id": "9204",
    "name": "My Renamed Geofence",
    "latitude": "45.5289315599",
    "longitude": "135.408680416",
    "radius": 12688,
    "comment_on_entry": "In at 2 - West Edton",
    "comment_on_exit": "Left 2 - West Edton",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1739375620,
    "updated_at": 1739375620
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1738684420,
      "beacons": 1734450820,
      "desktop_presences": 1738857220,
      "favorites": 1734710020,
      "fences": 1739375620,
      "groups": 1731167620,
      "networks": 1738338820,
      "roles": 1739375620,
      "settings": 1739375620
    },
    "emergency": null
  }
}

Groups

Create a group

Creates a new group. Once this group is created, it will appear in the company’s groups within the Simple In/Out apps and website. Users must have a role that permits managing groups/memberships to create groups. Companies are limited to 100 Groups.

Punto de llegada

POST /api/v4/groups

Parametros

Name Description
group[name] requerido (string) the name of the group

Solicitud

Ruta

POST /api/v4/groups

Encabezados

Content-Type: application/json
Authorization: Bearer YxsflFIR-lb2XDvJvWqOtANyUESIovJxp7oSkrmrecs

Cuerpo

{
  "group": {
    "name": "New Department"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/groups" -d '{"group":{"name":"New Department"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer YxsflFIR-lb2XDvJvWqOtANyUESIovJxp7oSkrmrecs"

Respuesta

Simulated Response

Campos de respuesta

Name Description
groups (object) the newly created group attributes

Estado

201

Encabezados

ETag: W/"5227d33ab69efd82af7b5e5769663578"

Cuerpo

{
  "groups": {
    "id": "58604",
    "name": "New Department"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1734969217,
      "beacons": 1736956417,
      "desktop_presences": 1733846017,
      "favorites": 1734450817,
      "fences": 1733241217,
      "groups": 1739375617,
      "networks": 1733327617,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null
  }
}

Delete a group

Deletes an existing group. Users must have a role that permits managing groups/memberships to delete groups.

Punto de llegada

DELETE /api/v4/groups/:id

Solicitud

Ruta

DELETE /api/v4/groups/58605

Encabezados

Content-Type: application/json
Authorization: Bearer ye4G8Ka38s0H7Fdo-i5gf6er6JHz1C96tuoBD0rQu0Y

cURL

curl "https://www.simpleinout.com/api/v4/groups/58605" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer ye4G8Ka38s0H7Fdo-i5gf6er6JHz1C96tuoBD0rQu0Y"

Respuesta

Simulated Response

Estado

204

List all groups

Return a list of all the groups belonging to the company.

Punto de llegada

GET /api/v4/groups

Parametros

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/groups

Encabezados

Content-Type: application/json
Authorization: Bearer JyauTHR5jpoW_cJEWBzKcX7058l0mBhCp9GGckb4PMQ

cURL

curl -g "https://www.simpleinout.com/api/v4/groups" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer JyauTHR5jpoW_cJEWBzKcX7058l0mBhCp9GGckb4PMQ"

Respuesta

Simulated Response

Campos de respuesta

Name Description
groups (array) an array of groups

Estado

200

Encabezados

ETag: W/"95bae87284e8a2115c7cb9bd0cbe50af"
Last-Modified: Wed, 12 Feb 2025 15:53:37 GMT

Cuerpo

{
  "groups": [
    {
      "id": "58606",
      "name": "Walsh, Kuhic and Osinski4"
    },
    {
      "id": "58607",
      "name": "Blick-Hayes5"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/groups",
      "last_href": "http://example.org/api/v4/groups",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1739030017,
      "beacons": 1732895617,
      "desktop_presences": 1735487617,
      "favorites": 1739116417,
      "fences": 1733068417,
      "groups": 1739375617,
      "networks": 1733327617,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null
  }
}

Update a group

Updates an existing group. Users must have a role that permits managing groups/memberships to update groups.

Punto de llegada

PATCH /api/v4/groups/:id

Parametros

Name Description
group[name] (string) the name of the group

Solicitud

Ruta

PATCH /api/v4/groups/58603

Encabezados

Content-Type: application/json
Authorization: Bearer j4WU2YaBJbsqJeNjqkJASrNMV2KHjVj9kj5b3vn7z64

Cuerpo

{
  "group": {
    "name": "Renamed Department"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/groups/58603" -d '{"group":{"name":"Renamed Department"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer j4WU2YaBJbsqJeNjqkJASrNMV2KHjVj9kj5b3vn7z64"

Respuesta

Simulated Response

Campos de respuesta

Name Description
groups (object) the newly updated group attributes

Estado

200

Encabezados

ETag: W/"73a39cc8b3b5836062cdffa13e49e3ea"

Cuerpo

{
  "groups": {
    "id": "58603",
    "name": "Renamed Department"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1736870017,
      "beacons": 1731340417,
      "desktop_presences": 1737993217,
      "favorites": 1734710017,
      "fences": 1732118017,
      "groups": 1739375617,
      "networks": 1732982017,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null
  }
}

Keys

List all keys

Retrieve the secret API keys needed for the authorized application. This API can be accessed with user credentials or user-less client credentials, and you must have executive scope (Simply Made Apps only).

Punto de llegada

GET /api/v4/keys

Solicitud

Ruta

GET /api/v4/keys

Encabezados

Content-Type: application/json
Authorization: Bearer Ff171tHRazGmhwlApfGoahOFXk4o6yPvcOZLwARwl0w

cURL

curl -g "https://www.simpleinout.com/api/v4/keys" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer Ff171tHRazGmhwlApfGoahOFXk4o6yPvcOZLwARwl0w"

Respuesta

Simulated Response

Estado

200

Encabezados

ETag: W/"6c2d7c231405feecdfd70774e47b5535"

Cuerpo

{
  "keys": {
    "MY_SECRET_KEY": "abc1234567",
    "ANOTHER_KEY": "xyz0987654321"
  }
}

Networks

Create a network

Creates a new network. Once this network is created, it will appear in the company’s networks within the Simple In/Out apps. Users must have a role that permits managing the company to create networks. Companies are limited to 100 Networks.

Punto de llegada

POST /api/v4/networks

Parametros

Name Description
network[name] requerido (string) the name of the network, no longer than 44 characters
network[ssid] requerido (string) the unique network identifier, no longer than 250 characters
network[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
network[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
network[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
network[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Solicitud

Ruta

POST /api/v4/networks

Encabezados

Content-Type: application/json
Authorization: Bearer ANsLkLY-PGe0bVd1PFZLQ0vF95VH9wcddxv8W0UBqgY

Cuerpo

{
  "network": {
    "name": "My Office",
    "ssid": "Office WiFi Hotspot"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/networks" -d '{"network":{"name":"My Office","ssid":"Office WiFi Hotspot"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer ANsLkLY-PGe0bVd1PFZLQ0vF95VH9wcddxv8W0UBqgY"

Respuesta

Simulated Response

Campos de respuesta

Name Description
networks (object) the newly created network attributes

Estado

201

Encabezados

ETag: W/"5de24d71e3251a7d083167c7590795a3"

Cuerpo

{
  "networks": {
    "id": "8449",
    "name": "My Office",
    "ssid": "Office WiFi Hotspot",
    "comment_on_entry": "In at My Office",
    "comment_on_exit": "Left My Office",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1739375620,
    "updated_at": 1739375620
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1737302019,
      "beacons": 1732204419,
      "desktop_presences": 1735401219,
      "favorites": 1732290819,
      "fences": 1732636419,
      "groups": 1732895619,
      "networks": 1739375620,
      "roles": 1739375620,
      "settings": 1739375620
    },
    "emergency": null
  }
}

Delete a network

Deletes an existing network. Users must have a role that permits managing the company to delete networks.

Punto de llegada

DELETE /api/v4/networks/:id

Solicitud

Ruta

DELETE /api/v4/networks/8450

Encabezados

Content-Type: application/json
Authorization: Bearer nNkIBkYbpiSANOKiWpxPWkh2ln_QYoWMXEChY31h4NM

cURL

curl "https://www.simpleinout.com/api/v4/networks/8450" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer nNkIBkYbpiSANOKiWpxPWkh2ln_QYoWMXEChY31h4NM"

Respuesta

Simulated Response

Estado

204

List all networks

Return a list of all the networks belonging to the company.

Punto de llegada

GET /api/v4/networks

Parametros

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/networks

Encabezados

Content-Type: application/json
Authorization: Bearer zGvFn5YKFf84q7lEan-Nm4ezYKNpOnkfU5ukUDyQNw0

cURL

curl -g "https://www.simpleinout.com/api/v4/networks" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer zGvFn5YKFf84q7lEan-Nm4ezYKNpOnkfU5ukUDyQNw0"

Respuesta

Simulated Response

Campos de respuesta

Name Description
networks (array) an array of networks

Estado

200

Encabezados

ETag: W/"5da3c87f02fef54724383d885e984cbb"
Last-Modified: Wed, 12 Feb 2025 15:53:40 GMT

Cuerpo

{
  "networks": [
    {
      "id": "8451",
      "name": "3 - East Bobshire",
      "ssid": "nhnz4zyavbjyd8w8vyi0xsd110nuub95",
      "comment_on_entry": "In at 3 - East Bobshire",
      "comment_on_exit": "Left 3 - East Bobshire",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1739375620,
      "updated_at": 1739375620
    },
    {
      "id": "8452",
      "name": "4 - Heribertoshire",
      "ssid": "gbjijy6lw92njhh511siihl7xhy9r9y4",
      "comment_on_entry": "In at 4 - Heribertoshire",
      "comment_on_exit": "Left 4 - Heribertoshire",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1739375620,
      "updated_at": 1739375620
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/networks",
      "last_href": "http://example.org/api/v4/networks",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1733068420,
      "beacons": 1738079620,
      "desktop_presences": 1738511620,
      "favorites": 1733586820,
      "fences": 1736870020,
      "groups": 1731686020,
      "networks": 1739375620,
      "roles": 1739375620,
      "settings": 1739375620
    },
    "emergency": null
  }
}

Update a network

Updates an existing network. Please note that if the SSID of the network is updated, any corresponding hardware must also be updated to broadcast the new SSID. Users must have a role that permits managing the company to update networks.

Punto de llegada

PATCH /api/v4/networks/:id

Parametros

Name Description
network[name] (string) the name of the network, no longer than 44 characters
network[ssid] (string) the unique network identifier, no longer than 250 characters
network[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
network[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
network[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
network[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Solicitud

Ruta

PATCH /api/v4/networks/8448

Encabezados

Content-Type: application/json
Authorization: Bearer bua2bwecg1kShZ1FteXPaJw2Uf47Kw8oSgdq7OeOq7U

Cuerpo

{
  "network": {
    "name": "My Renamed Office"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/networks/8448" -d '{"network":{"name":"My Renamed Office"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer bua2bwecg1kShZ1FteXPaJw2Uf47Kw8oSgdq7OeOq7U"

Respuesta

Simulated Response

Campos de respuesta

Name Description
networks (object) the newly updated network attributes

Estado

200

Encabezados

ETag: W/"7799d64a5d0bf9855360303678d34b07"

Cuerpo

{
  "networks": {
    "id": "8448",
    "name": "My Renamed Office",
    "ssid": "fqlm1qhbfv2p9bjjeouyr68ncrafslmq",
    "comment_on_entry": "In at 1 - Teshaton",
    "comment_on_exit": "Left 1 - Teshaton",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1739375619,
    "updated_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1734278019,
      "beacons": 1731599619,
      "desktop_presences": 1730994819,
      "favorites": 1736351619,
      "fences": 1732550019,
      "groups": 1732722819,
      "networks": 1739375619,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Ok

Make sure things are Ok

This API is only used to verify you’ve successfully authorized.

Punto de llegada

GET /api/v4/ok

Parametros

Name Description
meta (string) if any value included, will return meta information instead of a 204 No Content response

Solicitud

Ruta

GET /api/v4/ok

Encabezados

Content-Type: application/json
Authorization: Bearer AvK_o8fiiNKicmhrs6xfNlPIJ8_eRfk6OZ08KNMSFTw

cURL

curl -g "https://www.simpleinout.com/api/v4/ok" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer AvK_o8fiiNKicmhrs6xfNlPIJ8_eRfk6OZ08KNMSFTw"

Respuesta

Simulated Response

Estado

204

Passwords

Reset a password

Sends the password reset instructions email if a matching user is found. The response status will be 404 (not found) if there is no user with the email address. This API requires a user-less Client Credential grant, and you must have executive scope (Simply Made Apps only).

Punto de llegada

POST /api/v4/passwords

Parametros

Name Description
email requerido (string) the email of the user

Solicitud

Ruta

POST /api/v4/passwords

Encabezados

Content-Type: application/json
Authorization: Bearer -4huEEGa8dCNV9SkJmXnrE0TyfzRAaelA9loK7SCoXg

Cuerpo

{
  "email": "sterling@simplymadeapps.com"
}

cURL

curl "https://www.simpleinout.com/api/v4/passwords" -d '{"email":"sterling@simplymadeapps.com"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer -4huEEGa8dCNV9SkJmXnrE0TyfzRAaelA9loK7SCoXg"

Respuesta

Simulated Response

Estado

204

Roles

Create a role

Creates a new role. Once this role is created, it will be available to assign to users within the Simple In/Out apps and website. Users must have a role that permits managing the company to create roles. Companies are limited to 100 Roles.

Punto de llegada

POST /api/v4/roles

Parametros

Name Description
role[name] requerido (string) the name of the role, no longer than 255 characters, must be unique for the company
role[billing] (boolean) these users can change the company's plan, credit card, and invoice email/information.
role[followed_users] (boolean) these users can receive notifications on their devices when another user updates their status.
role[reminders] (boolean) these users can manage notifications sent to other users reminding them to update their status.
role[safeties] (boolean) these users can receive notifications when another user hasn't updated their status.
role[user_board] (boolean) these users can see all other users and their current status.
role[manage_groups_and_memberships] (boolean) these users can manage groups and which users are assigned to each group.
role[manage_others_archives] (boolean) these users can change the past statuses of all others by adding and deleting status updates.
role[manage_others_futures] (boolean) these users can schedule future status updates for all other users.
role[manage_others_status] (boolean) these users can change the current status of all users.
role[manage_own_archives] (boolean) these users can change their own past statuses by adding and deleting status updates.
role[manage_own_futures] (boolean) these users can schedule future status updates for themselves.
role[manage_own_status] (boolean) these users can update their own status from any device or the website. If a user is not allowed to update their own status, they can only update their status from a common device running FrontDesk or TimeClock.
role[view_others_archives] (boolean) these users can view the past status updates made by all other users.
role[view_others_futures] (boolean) these users can view the scheduled status updates for all users.
role[view_others_reports] (boolean) these users can run reports on the status history of all other users.
role[view_user_board_updated_at] (boolean) these users can view the time that status updates were made on the board.
role[member_board] (boolean) these users can see other users within the same groups and their current status.
role[manage_member_archives] (boolean) these users can change the past statuses of users within the same groups by adding and deleting status updates.
role[manage_member_futures] (boolean) these users can schedule future status updates for users within the same groups.
role[manage_member_status] (boolean) these users can change the current status of users within the same groups.
role[view_member_archives] (boolean) these users can view the past status updates made by users within the same groups.
role[view_member_futures] (boolean) these users can view the scheduled status updates for users within the same groups.
role[view_member_reports] (boolean) these users can run reports on the status history of users within the same groups.

Solicitud

Ruta

POST /api/v4/roles

Encabezados

Content-Type: application/json
Authorization: Bearer dgnIvHMMBGpQ-I3wUStBK1FkB_hr4Dn0Yk_QgyMNWUM

Cuerpo

{
  "role": {
    "name": "Billing Role",
    "billing": true,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": false,
    "view_others_futures": false,
    "view_others_reports": false,
    "view_user_board_updated_at": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/roles" -d '{"role":{"name":"Billing Role","billing":true,"followed_users":false,"reminders":false,"safeties":false,"user_board":false,"manage_groups_and_memberships":false,"manage_others_archives":false,"manage_others_futures":false,"manage_others_status":false,"manage_own_archives":false,"manage_own_futures":false,"manage_own_status":false,"view_others_archives":false,"view_others_futures":false,"view_others_reports":false,"view_user_board_updated_at":false,"member_board":false,"manage_member_archives":false,"manage_member_futures":false,"manage_member_status":false,"view_member_archives":false,"view_member_futures":false,"view_member_reports":false}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer dgnIvHMMBGpQ-I3wUStBK1FkB_hr4Dn0Yk_QgyMNWUM"

Respuesta

Simulated Response

Campos de respuesta

Name Description
roles (object) the newly created role attributes

Estado

201

Encabezados

ETag: W/"81e5d72b83edf3434f5fffcc49f902f9"

Cuerpo

{
  "roles": {
    "id": "2283800",
    "name": "Billing Role",
    "billing": true,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_company_and_users": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": false,
    "view_others_futures": false,
    "view_others_reports": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false,
    "view_user_board_updated_at": false,
    "created_at": 1739375619,
    "updated_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1736438019,
      "beacons": 1736092419,
      "desktop_presences": 1733673219,
      "favorites": 1730822019,
      "fences": 1738252419,
      "groups": 1735401219,
      "networks": 1737042819,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Delete a role

Deletes an existing role. Users must have a role that permits managing the company to delete roles.

Punto de llegada

DELETE /api/v4/roles/:id

Solicitud

Ruta

DELETE /api/v4/roles/2283790

Encabezados

Content-Type: application/json
Authorization: Bearer GkqqInXUZ8BBdACJ_CgWRIwICheXf8ZqIq84tLtIcXM

cURL

curl "https://www.simpleinout.com/api/v4/roles/2283790" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer GkqqInXUZ8BBdACJ_CgWRIwICheXf8ZqIq84tLtIcXM"

Respuesta

Simulated Response

Estado

204

List all roles

Return a list of all the roles belonging to the company.

Punto de llegada

GET /api/v4/roles

Parametros

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/roles

Encabezados

Content-Type: application/json
Authorization: Bearer Js6m9HV9esTBhAdnNJtGijysPNXyEoB9oyuelYWLaPE

cURL

curl -g "https://www.simpleinout.com/api/v4/roles" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Js6m9HV9esTBhAdnNJtGijysPNXyEoB9oyuelYWLaPE"

Respuesta

Simulated Response

Campos de respuesta

Name Description
roles (array) an array of roles

Estado

200

Encabezados

ETag: W/"03263d5cb9b754048197db3cfb6f9525"
Last-Modified: Wed, 12 Feb 2025 15:53:39 GMT

Cuerpo

{
  "roles": [
    {
      "id": "2283778",
      "name": "Manager",
      "billing": false,
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": false,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1739375619,
      "updated_at": 1739375619
    },
    {
      "id": "2283780",
      "name": "Limited User",
      "billing": false,
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": false,
      "manage_others_status": false,
      "manage_own_archives": false,
      "manage_own_futures": false,
      "manage_own_status": false,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1739375619,
      "updated_at": 1739375619
    },
    {
      "id": "2283777",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1739375619,
      "updated_at": 1739375619
    },
    {
      "id": "2283779",
      "name": "Regular User",
      "billing": false,
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": false,
      "manage_others_status": false,
      "manage_own_archives": false,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1739375619,
      "updated_at": 1739375619
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 4,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/roles",
      "last_href": "http://example.org/api/v4/roles",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1739375619,
      "beacons": 1738425219,
      "desktop_presences": 1733154819,
      "favorites": 1737042819,
      "fences": 1739202819,
      "groups": 1736610819,
      "networks": 1732636419,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Retrieve a role

Retrieve an existing role.

Punto de llegada

GET /api/v4/roles/:id

Solicitud

Ruta

GET /api/v4/roles/2283785

Encabezados

Content-Type: application/json
Authorization: Bearer SDavz7rjnVC3X-nSH9tg--m24X-__XShsqO1bidzskk

cURL

curl -g "https://www.simpleinout.com/api/v4/roles/2283785" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer SDavz7rjnVC3X-nSH9tg--m24X-__XShsqO1bidzskk"

Respuesta

Simulated Response

Campos de respuesta

Name Description
roles (object) the role attributes

Estado

200

Encabezados

ETag: W/"80209bca7627ca1fc5d4760862c987c0"
Last-Modified: Wed, 12 Feb 2025 15:53:39 GMT

Cuerpo

{
  "roles": {
    "id": "2283785",
    "name": "Bogan Inc",
    "billing": false,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_company_and_users": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": false,
    "view_others_futures": false,
    "view_others_reports": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false,
    "view_user_board_updated_at": false,
    "created_at": 1739375619,
    "updated_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1734623619,
      "beacons": 1732463619,
      "desktop_presences": 1736178819,
      "favorites": 1730908419,
      "fences": 1735055619,
      "groups": 1732204419,
      "networks": 1734882819,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null,
    "update_available": false
  }
}

Update a role

Updates an existing role. Users must have a role that permits managing the company to update roles.

Punto de llegada

PATCH /api/v4/roles/:id

Parametros

Name Description
role[name] (string) the name of the role, no longer than 255 characters, must be unique for the company
role[billing] (boolean) these users can change the company's plan, credit card, and invoice email/information.
role[followed_users] (boolean) these users can receive notifications on their devices when another user updates their status.
role[reminders] (boolean) these users can manage notifications sent to other users reminding them to update their status.
role[safeties] (boolean) these users can receive notifications when another user hasn't updated their status.
role[user_board] (boolean) these users can see all other users and their current status.
role[manage_groups_and_memberships] (boolean) these users can manage groups and which users are assigned to each group.
role[manage_others_archives] (boolean) these users can change the past statuses of all others by adding and deleting status updates.
role[manage_others_futures] (boolean) these users can schedule future status updates for all other users.
role[manage_others_status] (boolean) these users can change the current status of all users.
role[manage_own_archives] (boolean) these users can change their own past statuses by adding and deleting status updates.
role[manage_own_futures] (boolean) these users can schedule future status updates for themselves.
role[manage_own_status] (boolean) these users can update their own status from any device or the website. If a user is not allowed to update their own status, they can only update their status from a common device running FrontDesk or TimeClock.
role[view_others_archives] (boolean) these users can view the past status updates made by all other users.
role[view_others_futures] (boolean) these users can view the scheduled status updates for all users.
role[view_others_reports] (boolean) these users can run reports on the status history of all other users.
role[view_user_board_updated_at] (boolean) these users can view the time that status updates were made on the board.
role[member_board] (boolean) these users can see other users within the same groups and their current status.
role[manage_member_archives] (boolean) these users can change the past statuses of users within the same groups by adding and deleting status updates.
role[manage_member_futures] (boolean) these users can schedule future status updates for users within the same groups.
role[manage_member_status] (boolean) these users can change the current status of users within the same groups.
role[view_member_archives] (boolean) these users can view the past status updates made by users within the same groups.
role[view_member_futures] (boolean) these users can view the scheduled status updates for users within the same groups.
role[view_member_reports] (boolean) these users can run reports on the status history of users within the same groups.

Solicitud

Ruta

PATCH /api/v4/roles/2283795

Encabezados

Content-Type: application/json
Authorization: Bearer zNr6LNi5xPJd4uJFTND4U8HLsfLPhhwisQc_Szxs0GA

Cuerpo

{
  "role": {
    "name": "My Renamed Role",
    "billing": false,
    "view_others_archives": true,
    "view_others_futures": true
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/roles/2283795" -d '{"role":{"name":"My Renamed Role","billing":false,"view_others_archives":true,"view_others_futures":true}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer zNr6LNi5xPJd4uJFTND4U8HLsfLPhhwisQc_Szxs0GA"

Respuesta

Simulated Response

Campos de respuesta

Name Description
roles (object) the newly updated role attributes

Estado

200

Encabezados

ETag: W/"f0fd729aa919ffb1146f3f30f5a551ae"

Cuerpo

{
  "roles": {
    "id": "2283795",
    "name": "My Renamed Role",
    "billing": false,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_company_and_users": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": true,
    "view_others_futures": true,
    "view_others_reports": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false,
    "view_user_board_updated_at": false,
    "created_at": 1739375619,
    "updated_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1732895619,
      "beacons": 1737734019,
      "desktop_presences": 1735401219,
      "favorites": 1737302019,
      "fences": 1736092419,
      "groups": 1736092419,
      "networks": 1731513219,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Safeties

Create a safety

Creates a new safety. Two types of safeties can be created. If ‘run_time’ is given, the notification will go out if there are any users with the matching status at the given time. If ‘unsafe_after’ is given, a notification will go out any time a user is in the given status for the given length of time. Users must have a role that permits using safety notifications to create safeties, and the company must be on a plan that allows for safety notifications.

Punto de llegada

POST /api/v4/safeties

Parametros

Name Description
safety[device_id] requerido (string) the ID of the device that will receive notifications
safety[group_id] (string) the ID of the group to observe, the entire company will be observed if no group is assigned
safety[name] requerido (string) the label to apply to the safety
safety[run_time] (string) the time to check for unsafe users in 24-hour format at 5 minute intervals, run_time or unsafe_after is required
safety[run_time_zone] requerido (string) the time zone of the run time, required if run_time is given
safety[status] requerido (string) the status that determines if a user is unsafe: 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
safety[unsafe_after] (integer) the length of time, in hours, for a user with the matching status to be considered unsafe, run_time or unsafe_after is required
safety[wdays] requerido (string) days that safety notifications are enabled in the format '0123456', which each number equal to a weekday (0=Sunday, 1=Monday, etc)

Solicitud

Ruta

POST /api/v4/safeties

Encabezados

Content-Type: application/json
Authorization: Bearer 3A85B9dZYxg3WhkWJfwdrDHYC9BTkDHKAmlWEhNotUg

Cuerpo

{
  "safety": {
    "device_id": 54429,
    "name": "Safety Alert",
    "run_time": "17:00",
    "run_time_zone": "America/Chicago",
    "status": "in",
    "wdays": "12345"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/safeties" -d '{"safety":{"device_id":54429,"name":"Safety Alert","run_time":"17:00","run_time_zone":"America/Chicago","status":"in","wdays":"12345"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer 3A85B9dZYxg3WhkWJfwdrDHYC9BTkDHKAmlWEhNotUg"

Respuesta

Simulated Response

Campos de respuesta

Name Description
safeties (object) the newly created safety attributes

Estado

201

Encabezados

ETag: W/"e1dddb27914dc0adbd49b6eaea928ddc"

Cuerpo

{
  "safeties": {
    "id": "13131",
    "device_id": "54429",
    "group_id": null,
    "name": "Safety Alert",
    "run_time": "17:00",
    "run_time_zone": "America/Chicago",
    "status": "in",
    "unsafe_after": null,
    "wdays": "12345",
    "created_at": 1739375617,
    "updated_at": 1739375617
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1735055617,
      "beacons": 1733846017,
      "desktop_presences": 1736524417,
      "favorites": 1734018817,
      "fences": 1731340417,
      "groups": 1736438017,
      "networks": 1736265217,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null,
    "update_available": false
  }
}

Delete a safety

Deletes an existing safety. Users must have a role that permits using safety notifications to delete safeties, and the company must be on a plan that allows for safety notifications.

Punto de llegada

DELETE /api/v4/safeties/:id

Solicitud

Ruta

DELETE /api/v4/safeties/13132

Encabezados

Content-Type: application/json
Authorization: Bearer IjptPHRrOxjkuxtJYGrXfOKtiJpFmJCrROJF1YCjzOM

cURL

curl "https://www.simpleinout.com/api/v4/safeties/13132" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer IjptPHRrOxjkuxtJYGrXfOKtiJpFmJCrROJF1YCjzOM"

Respuesta

Simulated Response

Estado

204

List all safeties

Return a list of all safeties belonging to the device. Users must have a role that permits using safety notifications to list safeties, and the company must be on a plan that allows for safety notifications.

Punto de llegada

GET /api/v4/safeties

Parametros

Name Description
device_id requerido (string) the unique ID of the device
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/safeties?device_id=54427

Encabezados

Content-Type: application/json
Authorization: Bearer hdKAbXxf9IZrta6qKYErqTooXV-i6iZcmS5EwgN8vOs

Parámetros de la consulta

device_id=54427

cURL

curl -g "https://www.simpleinout.com/api/v4/safeties?device_id=54427" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer hdKAbXxf9IZrta6qKYErqTooXV-i6iZcmS5EwgN8vOs"

Respuesta

Simulated Response

Campos de respuesta

Name Description
safeties (array) an array of safety notification settings

Estado

200

Encabezados

ETag: W/"2a4754e8387adf0774f739109e9cd91d"
Last-Modified: Wed, 12 Feb 2025 15:53:37 GMT

Cuerpo

{
  "safeties": [
    {
      "id": "13128",
      "device_id": "54427",
      "group_id": null,
      "name": "Safety Alert",
      "run_time": "22:00",
      "run_time_zone": "America/Chicago",
      "status": "out",
      "unsafe_after": null,
      "wdays": "0123456",
      "created_at": 1739375617,
      "updated_at": 1739375617
    },
    {
      "id": "13129",
      "device_id": "54427",
      "group_id": null,
      "name": "Safety Alert",
      "run_time": null,
      "run_time_zone": "America/Chicago",
      "status": "out",
      "unsafe_after": 5,
      "wdays": "0123456",
      "created_at": 1739375617,
      "updated_at": 1739375617
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/safeties?device_id=54427",
      "last_href": "http://example.org/api/v4/safeties?device_id=54427",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1732809217,
      "beacons": 1732722817,
      "desktop_presences": 1734364417,
      "favorites": 1731081217,
      "fences": 1739289217,
      "groups": 1731599617,
      "networks": 1737820417,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null,
    "update_available": false
  }
}

Retrieve a safety

Retrieve an existing safety. Users must have a role that permits using safety notifications to retrieve safeties, and the company must be on a plan that allows for safety notifications.

Punto de llegada

GET /api/v4/safeties/:id

Parametros

Name Description
expand (string) set to 'users' to include the unsafe users

Solicitud

Ruta

GET /api/v4/safeties/13130?expand=users

Encabezados

Content-Type: application/json
Authorization: Bearer pCugx2iaELaOTi8cjqvHsKk89d7p6TX-cftg71m-sOc

Parámetros de la consulta

expand=users

cURL

curl -g "https://www.simpleinout.com/api/v4/safeties/13130?expand=users" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer pCugx2iaELaOTi8cjqvHsKk89d7p6TX-cftg71m-sOc"

Respuesta

Simulated Response

Campos de respuesta

Name Description
safeties (object) the safety attributes
users (array) an array of users considered unsafe

Estado

200

Encabezados

ETag: W/"2feaf1c63ef1f03f502d2ebe232b6d04"
Last-Modified: Wed, 12 Feb 2025 15:53:37 GMT

Cuerpo

{
  "safeties": {
    "id": "13130",
    "device_id": "54428",
    "group_id": null,
    "name": "Safety Alert",
    "run_time": null,
    "run_time_zone": "America/Chicago",
    "status": "in",
    "unsafe_after": 5,
    "wdays": "0123456",
    "created_at": 1739375617,
    "updated_at": 1739375617
  },
  "users": [
    {
      "id": "941684",
      "name": "Bebe Jenkins"
    },
    {
      "id": "941685",
      "name": "Dusty Goldner VM"
    }
  ],
  "meta": {
    "last_updated_at": {
      "announcements": 1731858817,
      "beacons": 1739289217,
      "desktop_presences": 1737993217,
      "favorites": 1731858817,
      "fences": 1733500417,
      "groups": 1733759617,
      "networks": 1732722817,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null,
    "update_available": false
  }
}

Update a safety

Updates an existing safety. Users must have a role that permits using safety notifications to update safeties, and the company must be on a plan that allows for safety notifications.

Punto de llegada

PATCH /api/v4/safeties/:id

Parametros

Name Description
safety[device_id] (string) the ID of the device that will receive notifications
safety[group_id] (string) the ID of the group to observe, send null to remove the group and use the entire company
safety[name] (string) the label to apply to the safety
safety[run_time] (string) the time to check for unsafe users in 24-hour format at 5 minute intervals, run_time or unsafe_after is required
safety[run_time_zone] (string) the time zone of the run time, required if run_time is given
safety[status] (string) the status that determines if a user is unsafe: 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
safety[unsafe_after] (integer) the length of time, in hours, for a user with the matching status to be considered unsafe, run_time or unsafe_after is required
safety[wdays] (string) days that safety notifications are enabled in the format '0123456', which each number equal to a weekday (0=Sunday, 1=Monday, etc)

Solicitud

Ruta

PATCH /api/v4/safeties/13133

Encabezados

Content-Type: application/json
Authorization: Bearer txqID6-DdF7w74a1IXkC8mVCgkNrV06BmGujVknUeQc

Cuerpo

{
  "safety": {
    "name": "Renamed Safety Notice"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/safeties/13133" -d '{"safety":{"name":"Renamed Safety Notice"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer txqID6-DdF7w74a1IXkC8mVCgkNrV06BmGujVknUeQc"

Respuesta

Simulated Response

Campos de respuesta

Name Description
safeties (object) the newly updated safety attributes

Estado

200

Encabezados

ETag: W/"33a6a74464763b11b8790de18d3de5e9"

Cuerpo

{
  "safeties": {
    "id": "13133",
    "device_id": "54431",
    "group_id": null,
    "name": "Renamed Safety Notice",
    "run_time": "22:00",
    "run_time_zone": "America/Chicago",
    "status": "out",
    "unsafe_after": null,
    "wdays": "0123456",
    "created_at": 1739375617,
    "updated_at": 1739375617
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1732809217,
      "beacons": 1738684417,
      "desktop_presences": 1736610817,
      "favorites": 1734710017,
      "fences": 1735660417,
      "groups": 1730822017,
      "networks": 1733241217,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null,
    "update_available": false
  }
}

Statuses

List statuses

List all the statuses within the time period specified by the ‘created_at’ date range. Users must have a role that permits viewing the status history of others or only the authorized user’s statuses will be returned.

Punto de llegada

GET /api/v4/statuses

Parametros

Name Description
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results
created_at requerido (string) a date range string for the time the status was created
status (string) the status: 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
comment (string) the comment, case sensitive, included with the status change
automatic (boolean) only find automatic statuses
user_id (string) the ID of a particular user
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'created_at', 'status', 'comment', 'automatic'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.memberships.group', 'user.phones', 'user.recents', 'changed_by_user', 'application'

Solicitud

Ruta

GET /api/v4/statuses?created_at=1738735200..1738994399

Encabezados

Content-Type: application/json
Authorization: Bearer hHl3J6x5FwMit-O-y1rEuZPJF96AlHh7uOkmgKgSlxo

Parámetros de la consulta

created_at=1738735200..1738994399

cURL

curl -g "https://www.simpleinout.com/api/v4/statuses?created_at=1738735200..1738994399" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer hHl3J6x5FwMit-O-y1rEuZPJF96AlHh7uOkmgKgSlxo"

Respuesta

Simulated Response

Campos de respuesta

Name Description
statuses (array) an array of matching statuses

Estado

200

Encabezados

ETag: W/"092f06880366566ad1819f8d44ba736a"
Last-Modified: Thu, 06 Feb 2025 15:00:00 GMT

Cuerpo

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "941636",
      "changed_by_user_id": null,
      "created_at": 1738742400
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": true,
      "user_id": "941636",
      "changed_by_user_id": null,
      "created_at": 1738756800
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "941636",
      "changed_by_user_id": null,
      "created_at": 1738760400
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "941636",
      "changed_by_user_id": null,
      "created_at": 1738778400
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": true,
      "user_id": "941636",
      "changed_by_user_id": null,
      "created_at": 1738828800
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": true,
      "user_id": "941636",
      "changed_by_user_id": null,
      "created_at": 1738850400
    },
    {
      "status": "out",
      "comment": "On Vacation",
      "automatic": false,
      "user_id": "941636",
      "changed_by_user_id": "941637",
      "created_at": 1738854000
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 7,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/statuses?created_at=1738735200..1738994399",
      "last_href": "http://example.org/api/v4/statuses?created_at=1738735200..1738994399",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1739289216,
      "beacons": 1736438016,
      "desktop_presences": 1733154816,
      "favorites": 1731772416,
      "fences": 1733586816,
      "groups": 1732118016,
      "networks": 1735401216,
      "roles": 1739375616,
      "settings": 1739375616
    },
    "emergency": null
  }
}

Trials

Create a new trial

Create a new Simple In/Out trial company/user. This results in a HTTP 302 redirect to simpleinout.com. There, Simple In/Out will ask the user for their new company/user information and create them. Simple In/Out will send a request to your redirect_uri with a code that you will use in the Authorization Code grant to create access and refresh tokens to access the API.

Punto de llegada

GET /api/v4/trials/new

Parametros

Name Description
response_type requerido (string) the type of authorization to use, in this case always 'code'
client_id requerido (string) your API client key
redirect_uri requerido (string) the URI to return the user to after authenticating, must match those registered with Simple In/Out
scope requerido (string) requested scope, always 'executive'
locale (string) the language of your device, all values accepted

Solicitud

Ruta

GET /api/v4/trials/new?response_type=code&client_id=PLACE_YOUR_API_CLIENT_ID_HERE&redirect_uri=https%3A%2F%2Fwww.simplymadeapps.com%2Fredirect%2Furl&scope=executive&locale=en

Encabezados

Content-Type: application/json

Parámetros de la consulta

response_type=code
client_id=PLACE_YOUR_API_CLIENT_ID_HERE
redirect_uri=https://www.simplymadeapps.com/redirect/url
scope=executive
locale=en

cURL

curl -g "https://www.simpleinout.com/api/v4/trials/new?response_type=code&client_id=PLACE_YOUR_API_CLIENT_ID_HERE&redirect_uri=https%3A%2F%2Fwww.simplymadeapps.com%2Fredirect%2Furl&scope=executive&locale=en" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Respuesta

Simulated Response

Estado

302

Cuerpo

<html><body>You are being <a href="http://example.org/api/signups/new?locale=en">redirected</a>.</body></html>

Users

Archive a user

Archives an existing user. Users must have a role that permits managing users.

Punto de llegada

POST /api/v4/users/:id/archive

Solicitud

Ruta

POST /api/v4/users/941783/archive

Encabezados

Content-Type: application/json
Authorization: Bearer Lh9t6LJMfJvqsRDW_LZWR3xZ9cvCPsBGKIC1BTZZty8

cURL

curl "https://www.simpleinout.com/api/v4/users/941783/archive" -d '' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Lh9t6LJMfJvqsRDW_LZWR3xZ9cvCPsBGKIC1BTZZty8"

Respuesta

Simulated Response

Estado

204

Create a future status update for a user

Add a scheduled status for a specific user. Users must have a role that permits managing their own scheduled statuses if updating themselves or be permitted to manage the scheduled statuses of others if updating another user. The company must also have scheduled statuses enabled.

Punto de llegada

POST /api/v4/users/:id/futures

Parametros

Name Description
future[status] requerido (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
future[apply_at] requerido (integer) epoch time to apply status change, must be in the future, have minutes within (00, 15, 30, 45), and seconds of 0
future[comment] (string) up to 50 character description of the status update
future[end_at] (integer) epoch time to end the scheduled status, must be after apply_at, have minutes within (00, 15, 30, 45), and seconds of 0
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'

Solicitud

Ruta

POST /api/v4/users/941702/futures

Encabezados

Content-Type: application/json
Authorization: Bearer r5MzsZCQ22fZc-6mcY1ww-o4UlvNH9aC0S0D0irkko0

Cuerpo

{
  "future": {
    "status": "out",
    "apply_at": 1744466400,
    "comment": "On Vacation",
    "end_at": 1744898400
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/941702/futures" -d '{"future":{"status":"out","apply_at":1744466400,"comment":"On Vacation","end_at":1744898400}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer r5MzsZCQ22fZc-6mcY1ww-o4UlvNH9aC0S0D0irkko0"

Respuesta

Simulated Response

Campos de respuesta

Name Description
futures (object) the newly created future object

Estado

201

Encabezados

ETag: W/"bed90d0be0c9d84f047aad6ae81a3169"

Cuerpo

{
  "futures": {
    "id": "30096",
    "status": "out",
    "comment": "On Vacation",
    "completed": false,
    "apply_at": 1744466400,
    "end_at": 1744898400,
    "user_id": "941702",
    "changed_by_user_id": "941701"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1732982018,
      "beacons": 1738598018,
      "desktop_presences": 1732031618,
      "favorites": 1733068418,
      "fences": 1730822018,
      "groups": 1738252418,
      "networks": 1734623618,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

Create a future status update for the current user

Add a scheduled status for the current user. Users must have a role that permits managing their own scheduled statuses and the company must have scheduled statuses enabled.

Punto de llegada

POST /api/v4/users/my/futures

Parametros

Name Description
future[status] requerido (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
future[apply_at] requerido (integer) epoch time to apply status change, must be in the future and have minutes within (00, 15, 30, 45), and seconds of 0
future[comment] (string) up to 50 character description of the status update
future[end_at] (integer) epoch time to end the scheduled status, must be after apply_at, have minutes within (00, 15, 30, 45), and seconds of 0
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'

Solicitud

Ruta

POST /api/v4/users/my/futures

Encabezados

Content-Type: application/json
Authorization: Bearer x9IWjKl_S6Crt-bceSm2uXUgPyDcjuxFlD3Kh9MgU3g

Cuerpo

{
  "future": {
    "status": "out",
    "apply_at": 1744466400,
    "comment": "On Vacation",
    "end_at": 1744898400
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/futures" -d '{"future":{"status":"out","apply_at":1744466400,"comment":"On Vacation","end_at":1744898400}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer x9IWjKl_S6Crt-bceSm2uXUgPyDcjuxFlD3Kh9MgU3g"

Respuesta

Simulated Response

Campos de respuesta

Name Description
futures (object) the newly created future object

Estado

201

Encabezados

ETag: W/"61fab0e626367a400beaed506655a80a"

Cuerpo

{
  "futures": {
    "id": "30101",
    "status": "out",
    "comment": "On Vacation",
    "completed": false,
    "apply_at": 1744466400,
    "end_at": 1744898400,
    "user_id": "941726",
    "changed_by_user_id": null
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1730994818,
      "beacons": 1737302018,
      "desktop_presences": 1737129218,
      "favorites": 1735228418,
      "fences": 1731340418,
      "groups": 1731599618,
      "networks": 1737561218,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

Create a status update for a user

Changes a user’s status. Users must have a role that permits managing their own current status or their own past statuses if updating themselves. Users must be permitted to manage the current status of others or the past status of others if updating another user.

Punto de llegada

POST /api/v4/users/:id/statuses

Parametros

Name Description
status[status] requerido (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (string) up to 50 character description of the status update
status[created_at] (integer) epoch time to apply status change, defaults to the current time (if this parameter is passed the date must be in the past)
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.phones', 'user.recents', 'changed_by_user', 'application'

Solicitud

Ruta

POST /api/v4/users/941691/statuses

Encabezados

Content-Type: application/json
Authorization: Bearer uO3m76VLJmG-Eq5aIOFm1-c7r4lxb7XpAZKr0RNyusQ

Cuerpo

{
  "status": {
    "status": "in",
    "comment": "In at HQ"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/941691/statuses" -d '{"status":{"status":"in","comment":"In at HQ"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer uO3m76VLJmG-Eq5aIOFm1-c7r4lxb7XpAZKr0RNyusQ"

Respuesta

Simulated Response

Campos de respuesta

Name Description
statuses (object) the newly created status object

Estado

201

Encabezados

ETag: W/"38cc171d6ff75bbfb2dfea29c167358a"

Cuerpo

{
  "statuses": {
    "status": "in",
    "comment": "In at HQ",
    "automatic": false,
    "user_id": "941691",
    "changed_by_user_id": "941690",
    "created_at": 1739375618
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1735746817,
      "beacons": 1733759617,
      "desktop_presences": 1737388417,
      "favorites": 1732722817,
      "fences": 1734623617,
      "groups": 1736610817,
      "networks": 1736783617,
      "roles": 1739375617,
      "settings": 1739375617
    },
    "emergency": null
  }
}

Create a status update for a user without attribution

Changes a user’s status, but does so without populating the admin that did it. The user that is authenticated must have a role that’s permitted to set up tablet access.

Punto de llegada

POST /api/v4/users/:id/statuses_without_fingerprint

Parametros

Name Description
status[status] requerido (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'toggle'
status[comment] (string/hash) string is up to 50 character description of the status update, hash would contain values for 'in' and 'out' for toggle, and the API will choose the appropriate one
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.phones', 'user.recents', 'changed_by_user', 'application'

Solicitud

Ruta

POST /api/v4/users/941699/statuses_without_fingerprint

Encabezados

Content-Type: application/json
Authorization: Bearer xUWQHrO0TAz2i0_eMSafqhnkAUSaJAR4l_CrJFzaja0

Cuerpo

{
  "status": {
    "status": "in",
    "comment": "In at HQ"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/941699/statuses_without_fingerprint" -d '{"status":{"status":"in","comment":"In at HQ"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer xUWQHrO0TAz2i0_eMSafqhnkAUSaJAR4l_CrJFzaja0"

Respuesta

Simulated Response

Campos de respuesta

Name Description
statuses (object) the newly created status object

Estado

201

Encabezados

ETag: W/"521f81ab5018cc166de325c17e776e2e"

Cuerpo

{
  "statuses": {
    "status": "in",
    "comment": "In at HQ",
    "automatic": false,
    "user_id": "941699",
    "changed_by_user_id": null,
    "created_at": 1739375618
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1736092418,
      "beacons": 1738252418,
      "desktop_presences": 1737302018,
      "favorites": 1733846018,
      "fences": 1735660418,
      "groups": 1732722818,
      "networks": 1731167618,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null,
    "update_available": false
  }
}

Create a status update for the current user

Changes the current user’s status. Users must have a role that permits managing their own current status or their own past statuses.

Punto de llegada

POST /api/v4/users/my/statuses

Parametros

Name Description
status[status] requerido (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (st`ring) up to 50 character description of the status update
status[created_at] (integer) epoch time to apply status change, defaults to the current time (if this parameter is passed the date must be in the past)
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.phones', 'user.recents', 'changed_by_user', 'application'

Solicitud

Ruta

POST /api/v4/users/my/statuses

Encabezados

Content-Type: application/json
Authorization: Bearer y9-ufVpyGtiRDoLnJ1rvk4ZOXWsBbaPAJpH_C8mMFUc

Cuerpo

{
  "status": {
    "status": "in",
    "comment": "In at HQ"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/statuses" -d '{"status":{"status":"in","comment":"In at HQ"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer y9-ufVpyGtiRDoLnJ1rvk4ZOXWsBbaPAJpH_C8mMFUc"

Respuesta

Simulated Response

Campos de respuesta

Name Description
statuses (object) the newly created status object

Estado

201

Encabezados

ETag: W/"83eaca3591e83e65ad2c45b0bf57cf0c"

Cuerpo

{
  "statuses": {
    "status": "in",
    "comment": "In at HQ",
    "automatic": false,
    "user_id": "941737",
    "changed_by_user_id": null,
    "created_at": 1739375619
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1735919618,
      "beacons": 1731426818,
      "desktop_presences": 1734191618,
      "favorites": 1739375618,
      "fences": 1735142018,
      "groups": 1730822018,
      "networks": 1731167618,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

Create a user

Creates a new user. When this is completed, the user will be sent a welcome email from Simple In/Out with a link to choose their own password. Users must have a role that permits managing the company/users to create users. Companies are limited to the number of users their plan supports, and attempting to add more users will result in a greater_than error on the base parameter.

Punto de llegada

POST /api/v4/users

Parametros

Name Description
user[email] requerido (string) new user's email address
user[name] requerido (string) new user's full name
user[details] (string) additional text information about the user
user[lang] (string) preferred locale of the user defaulting to the locale of the authorized user, can be en, en-au, en-ca, en-gb, es, fr, fr-ca
user[image_url] (string) url of an image for the user, must be an https url
user[phones_attributes] (array) phone objects to attach to the user, each with a 'number' attribute
user[memberships_attributes] (array) membership objects to place the user in the group, each with a 'group_id' attribute
user[role_id] requerido (string) the ID of the role to assign to the user
user[skip_confirmation_email] (boolean) whether to send a welcome email for the new user to choose their password, defaults to false which makes certain the email is sent
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Solicitud

Ruta

POST /api/v4/users

Encabezados

Content-Type: application/json
Authorization: Bearer -C4m5xcZPL_6pYGWwOGuwFotjpPj-7RWYWrEJsHzgdg

Cuerpo

{
  "user": {
    "email": "bojack@simplymadeapps.com",
    "name": "Bojack Horseman",
    "details": "Lead Actor",
    "lang": "en",
    "image_url": "https://placehold.it/350x150",
    "phones_attributes": [
      {
        "number": "905.734.2063 x8041"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 58611
      }
    ],
    "role_id": "2283681"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users" -d '{"user":{"email":"bojack@simplymadeapps.com","name":"Bojack Horseman","details":"Lead Actor","lang":"en","image_url":"https://placehold.it/350x150","phones_attributes":[{"number":"905.734.2063 x8041"}],"memberships_attributes":[{"group_id":58611}],"role_id":"2283681"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer -C4m5xcZPL_6pYGWwOGuwFotjpPj-7RWYWrEJsHzgdg"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (object) the newly created user object

Estado

201

Encabezados

ETag: W/"a9d27c75068b7cd5b57fb4582fc6ddbe"

Cuerpo

{
  "users": {
    "id": "941711",
    "name": "Bojack Horseman",
    "email": "bojack@simplymadeapps.com",
    "details": "Lead Actor",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "2283681",
    "created_at": 1739375618,
    "updated_at": 1739375618,
    "cached_at": "1739375618.435574000"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1737906818,
      "beacons": 1735746818,
      "desktop_presences": 1731945218,
      "favorites": 1732118018,
      "fences": 1738079618,
      "groups": 1739375618,
      "networks": 1731340418,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null,
    "update_available": false
  }
}

Create/Update user favorites

Creates user favorites (Quick Picks). If user favorites exist, they will be overwritten by the new ones. Users are limited to 10 favorites.

Punto de llegada

POST /api/v4/users/my/favorites

Parametros

Name Description
favorites requerido (array) array of objects consisting of 'status' and 'comment'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'

Solicitud

Ruta

POST /api/v4/users/my/favorites

Encabezados

Content-Type: application/json
Authorization: Bearer XWoQI4s8_Xzpv-s7FyOav7OeuZ3pQPQUq-xedi4oTYA

Cuerpo

{
  "favorites": [
    {
      "status": "in",
      "comment": "At Work"
    },
    {
      "status": "out",
      "comment": "On Vacation"
    }
  ],
  "expand": "favorites"
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/favorites" -d '{"favorites":[{"status":"in","comment":"At Work"},{"status":"out","comment":"On Vacation"}],"expand":"favorites"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer XWoQI4s8_Xzpv-s7FyOav7OeuZ3pQPQUq-xedi4oTYA"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (object) the newly updated user attributes

Estado

200

Encabezados

ETag: W/"10f8c75ae57644b581c54628f907acd9"

Cuerpo

{
  "users": {
    "id": "941721",
    "name": "Sterling Archer",
    "email": "sterling@simplymadeapps.com",
    "details": "Voluptatem illo inventore.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "favorites": [
      {
        "status": "in",
        "comment": "At Work"
      },
      {
        "status": "out",
        "comment": "On Vacation"
      }
    ],
    "role_id": "2283699",
    "created_at": 1739375618,
    "updated_at": 1739375618,
    "cached_at": "1739375618.586521100"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1733673218,
      "beacons": 1732636418,
      "desktop_presences": 1732550018,
      "favorites": 1733846018,
      "fences": 1734796418,
      "groups": 1738252418,
      "networks": 1732204418,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

Delete a user

Deletes an existing user. Users must have a role that permits managing the company/users to delete users. Companies must have at least one user with the Administrator role, if you attempt to delete the last user with the Administrator role, this will result in a less_than error on the base parameter.

Punto de llegada

DELETE /api/v4/users/:id

Solicitud

Ruta

DELETE /api/v4/users/941728

Encabezados

Content-Type: application/json
Authorization: Bearer d0LBzZmOkAGn2Q1sixUACwe1btw604ndV5-W8__AjIg

cURL

curl "https://www.simpleinout.com/api/v4/users/941728" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer d0LBzZmOkAGn2Q1sixUACwe1btw604ndV5-W8__AjIg"

Respuesta

Simulated Response

Estado

204

Favorite a status for the current user

Designates a previous status update as a favorite for the current user’s Quick Picks.

Punto de llegada

PATCH /api/v4/users/my/statuses/favorite

Parametros

Name Description
status[status] requerido (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (string) up to 50 character description of the status update

Solicitud

Ruta

PATCH /api/v4/users/my/statuses/favorite

Encabezados

Content-Type: application/json
Authorization: Bearer 8wl3kgr4tzkPJmu72fl6dfeUPAx4diXEi7tyRbivnrc

Cuerpo

{
  "status": {
    "status": "in",
    "comment": "At Lunch"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/statuses/favorite" -d '{"status":{"status":"in","comment":"At Lunch"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 8wl3kgr4tzkPJmu72fl6dfeUPAx4diXEi7tyRbivnrc"

Respuesta

Simulated Response

Estado

204

Hide a status for the current user

Hides a previous status update from the current user’s Quick Picks.

Punto de llegada

PATCH /api/v4/users/my/statuses/hide

Parametros

Name Description
status[status] requerido (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (string) up to 50 character description of the status update

Solicitud

Ruta

PATCH /api/v4/users/my/statuses/hide

Encabezados

Content-Type: application/json
Authorization: Bearer Y7zTxRsWf8pM6bUko55i7DXEdOKiINz8nsIZkGdPJSQ

Cuerpo

{
  "status": {
    "status": "in",
    "comment": "At Lunch"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/statuses/hide" -d '{"status":{"status":"in","comment":"At Lunch"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Y7zTxRsWf8pM6bUko55i7DXEdOKiINz8nsIZkGdPJSQ"

Respuesta

Simulated Response

Estado

204

List all archived users

Return a list of all the archived users belonging to the company. Users must have a role that permits managing users.

Punto de llegada

GET /api/v4/users?archived=true

Solicitud

Ruta

GET /api/v4/users?archived=true

Encabezados

Content-Type: application/json
Authorization: Bearer Dah6J84NY6LMs_2UomO0yepGqIOA4aa0cV1as0P9JE8

Parámetros de la consulta

archived=true

cURL

curl -g "https://www.simpleinout.com/api/v4/users?archived=true" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Dah6J84NY6LMs_2UomO0yepGqIOA4aa0cV1as0P9JE8"

Respuesta

Simulated Response

Estado

200

Encabezados

ETag: W/"c53401fcaa0776ddc7f30ecafd24497e"
Last-Modified: Wed, 12 Feb 2025 15:53:40 GMT

Cuerpo

{
  "users": [
    {
      "id": "941785",
      "name": "Doria Satterfield",
      "email": null,
      "details": "Aut architecto possimus.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": null,
      "created_at": 1739375620,
      "updated_at": 1739375620,
      "cached_at": "1739375620.312690000"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 1,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users?archived=true",
      "last_href": "http://example.org/api/v4/users?archived=true",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1733846020,
      "beacons": 1735833220,
      "desktop_presences": 1736092420,
      "favorites": 1732550020,
      "fences": 1733327620,
      "groups": 1736870020,
      "networks": 1734364420,
      "roles": 1739375620,
      "settings": 1739375620
    },
    "emergency": null,
    "trusted_cached_at": "1739375605.320443900"
  }
}

List all future statuses for a user

List all the scheduled statuses for the specified user. Please note that the user making this request must have a role with permission to view the scheduled statuses of others and the company must have scheduled statuses enabled.

Punto de llegada

GET /api/v4/users/:id/futures

Parametros

Name Description
comment (string) the comment, case sensitive, included with the status change
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'apply_at', 'status', 'comment'
apply_at (string) a date range string for the time the status will be added
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/users/941722/futures

Encabezados

Content-Type: application/json
Authorization: Bearer AEmnMFocR_ZoGZEOp_sWKn02qums7cfCzApNRbAJWig

cURL

curl -g "https://www.simpleinout.com/api/v4/users/941722/futures" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer AEmnMFocR_ZoGZEOp_sWKn02qums7cfCzApNRbAJWig"

Respuesta

Simulated Response

Campos de respuesta

Name Description
futures (array) an array of matching scheduled statuses

Estado

200

Encabezados

ETag: W/"ca8b37816d921a9af3fde6e250eaa28b"
Last-Modified: Wed, 12 Feb 2025 15:53:38 GMT

Cuerpo

{
  "futures": [
    {
      "id": "30099",
      "status": "out",
      "comment": "Offsite Meeting",
      "completed": false,
      "apply_at": 1739952000,
      "end_at": null,
      "user_id": "941722",
      "changed_by_user_id": null
    },
    {
      "id": "30100",
      "status": "out",
      "comment": "Gone Fishing",
      "completed": false,
      "apply_at": 1745406000,
      "end_at": 1745578800,
      "user_id": "941722",
      "changed_by_user_id": "941723"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users/941722/futures?user_id=941722",
      "last_href": "http://example.org/api/v4/users/941722/futures?user_id=941722",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1734278018,
      "beacons": 1732895618,
      "desktop_presences": 1735746818,
      "favorites": 1737042818,
      "fences": 1730822018,
      "groups": 1733586818,
      "networks": 1734364418,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

List all future statuses for the current user

List all the scheduled statuses for the current user. Please note that the company must have scheduled statuses enabled for users to see their scheduled statuses.

Punto de llegada

GET /api/v4/users/my/futures

Parametros

Name Description
comment (string) the comment, case sensitive, included with the status change
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'apply_at', 'status', 'comment'
apply_at (string) a date range string for the time the status will be added
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/users/my/futures

Encabezados

Content-Type: application/json
Authorization: Bearer o9S7NfMSXnivhvkDEIDTMOrplw7S7dqeVGVIIF4lvq0

cURL

curl -g "https://www.simpleinout.com/api/v4/users/my/futures" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer o9S7NfMSXnivhvkDEIDTMOrplw7S7dqeVGVIIF4lvq0"

Respuesta

Simulated Response

Campos de respuesta

Name Description
futures (array) an array of matching scheduled statuses

Estado

200

Encabezados

ETag: W/"a4258c9f8c770db82d336c8a10a2573a"
Last-Modified: Wed, 12 Feb 2025 15:53:38 GMT

Cuerpo

{
  "futures": [
    {
      "id": "30097",
      "status": "out",
      "comment": "Offsite Meeting",
      "completed": false,
      "apply_at": 1739952000,
      "end_at": null,
      "user_id": "941706",
      "changed_by_user_id": null
    },
    {
      "id": "30098",
      "status": "out",
      "comment": "Gone Fishing",
      "completed": false,
      "apply_at": 1745406000,
      "end_at": 1745578800,
      "user_id": "941706",
      "changed_by_user_id": "941707"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users/my/futures?user_id=941706",
      "last_href": "http://example.org/api/v4/users/my/futures?user_id=941706",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1733586818,
      "beacons": 1739116418,
      "desktop_presences": 1734018818,
      "favorites": 1735833218,
      "fences": 1735055618,
      "groups": 1737302018,
      "networks": 1733586818,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

List all statuses for a user

List all the statuses for the specified user within the time period specified by the ‘created_at’ date range. Users must have a role that permits viewing the past statuses of others if viewing another user. They can always view their own past statuses.

Punto de llegada

GET /api/v4/users/:id/statuses

Parametros

Name Description
created_at requerido (string) a date range string for the time the status was created
comment (string) the comment, case sensitive, included with the status change
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'created_at', 'status', 'comment'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.phones', 'user.recents', 'changed_by_user', 'application'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/users/941724/statuses?created_at=1738735200..1738994399

Encabezados

Content-Type: application/json
Authorization: Bearer DUFLbN6ViNu6SW8cxZkmEfdmkmWHtIhfUbbzqNvxmTw

Parámetros de la consulta

created_at=1738735200..1738994399

cURL

curl -g "https://www.simpleinout.com/api/v4/users/941724/statuses?created_at=1738735200..1738994399" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer DUFLbN6ViNu6SW8cxZkmEfdmkmWHtIhfUbbzqNvxmTw"

Respuesta

Simulated Response

Campos de respuesta

Name Description
statuses (array) an array of matching statuses

Estado

200

Encabezados

ETag: W/"6f6c71f10f7f6693503eda44e9263606"
Last-Modified: Thu, 06 Feb 2025 15:00:00 GMT

Cuerpo

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "941724",
      "changed_by_user_id": null,
      "created_at": 1738742400
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "941724",
      "changed_by_user_id": null,
      "created_at": 1738756800
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "941724",
      "changed_by_user_id": null,
      "created_at": 1738760400
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "941724",
      "changed_by_user_id": null,
      "created_at": 1738778400
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "941724",
      "changed_by_user_id": null,
      "created_at": 1738828800
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "941724",
      "changed_by_user_id": null,
      "created_at": 1738850400
    },
    {
      "status": "out",
      "comment": "Vacation",
      "automatic": false,
      "user_id": "941724",
      "changed_by_user_id": "941725",
      "created_at": 1738854000
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 7,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users/941724/statuses?created_at=1738735200..1738994399&user_id=941724",
      "last_href": "http://example.org/api/v4/users/941724/statuses?created_at=1738735200..1738994399&user_id=941724",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1732204418,
      "beacons": 1735401218,
      "desktop_presences": 1731858818,
      "favorites": 1731254018,
      "fences": 1731686018,
      "groups": 1737734018,
      "networks": 1731081218,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

List all statuses for the current user

List all the statuses for the current user within the time period specified by the ‘created_at’ date range.

Punto de llegada

GET /api/v4/users/my/statuses

Parametros

Name Description
created_at requerido (string) a date range string for the time the status was created
comment (string) the comment, case sensitive, included with the status change
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'created_at', 'status', 'comment'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.phones', 'user.recents', 'changed_by_user', 'application'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Solicitud

Ruta

GET /api/v4/users/my/statuses?created_at=1738735200..1738994399

Encabezados

Content-Type: application/json
Authorization: Bearer 8CIeklBVSJ6n3MmsHeFiWv-3bsT7BFaaJ9Un91wqMKo

Parámetros de la consulta

created_at=1738735200..1738994399

cURL

curl -g "https://www.simpleinout.com/api/v4/users/my/statuses?created_at=1738735200..1738994399" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 8CIeklBVSJ6n3MmsHeFiWv-3bsT7BFaaJ9Un91wqMKo"

Respuesta

Simulated Response

Campos de respuesta

Name Description
statuses (array) an array of matching statuses

Estado

200

Encabezados

ETag: W/"fb6774eb4ebf10b8afd85cdead6766f3"
Last-Modified: Thu, 06 Feb 2025 15:00:00 GMT

Cuerpo

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "941693",
      "changed_by_user_id": null,
      "created_at": 1738742400
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "941693",
      "changed_by_user_id": null,
      "created_at": 1738756800
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "941693",
      "changed_by_user_id": null,
      "created_at": 1738760400
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "941693",
      "changed_by_user_id": null,
      "created_at": 1738778400
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "941693",
      "changed_by_user_id": null,
      "created_at": 1738828800
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "941693",
      "changed_by_user_id": null,
      "created_at": 1738850400
    },
    {
      "status": "out",
      "comment": "Vacation",
      "automatic": false,
      "user_id": "941693",
      "changed_by_user_id": "941694",
      "created_at": 1738854000
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 7,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users/my/statuses?created_at=1738735200..1738994399&user_id=941693",
      "last_href": "http://example.org/api/v4/users/my/statuses?created_at=1738735200..1738994399&user_id=941693",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1733414018,
      "beacons": 1734191618,
      "desktop_presences": 1733500418,
      "favorites": 1738857218,
      "fences": 1732982018,
      "groups": 1732809218,
      "networks": 1733327618,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

List all users

Return a list of all the users belonging to the company. Users must have a role that permits viewing users.

Punto de llegada

GET /api/v4/users

Parametros

Name Description
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results
name (string) return users with this name
email (string) return users with this email
id (array) return users by an array of ids
group_id (string/array) return users belonging to a group id, which can be a string or array in the form of group_id[]=INT
cached_at (integer/float) return users updated that have made a significant change since an epoch time, accurate to nanoseconds
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name', 'email', 'cached_at', 'status.status', 'status.created_at'
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Solicitud

Ruta

GET /api/v4/users

Encabezados

Content-Type: application/json
Authorization: Bearer ZrMJ-15JucL9hrR-kgAsEaFsFZz-MqZpppzDPA8xYEM

cURL

curl -g "https://www.simpleinout.com/api/v4/users" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer ZrMJ-15JucL9hrR-kgAsEaFsFZz-MqZpppzDPA8xYEM"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (array) an array of users
trusted_cached_at (string in the meta object) the server time minus an amount to account for network delivery time

Estado

200

Encabezados

ETag: W/"4330ed591a6b2a59217c2ea28c082197"
Last-Modified: Wed, 12 Feb 2025 15:53:38 GMT

Cuerpo

{
  "users": [
    {
      "id": "941712",
      "name": "Malory Archer",
      "email": "malory@simplymadeapps.com",
      "details": "Ut enim maiores.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "2283685",
      "created_at": 1739375618,
      "updated_at": 1739375618,
      "cached_at": "1739375618.459264000"
    },
    {
      "id": "941713",
      "name": "Sterling Archer",
      "email": "sterling@simplymadeapps.com",
      "details": "Omnis voluptas laudantium.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "2283687",
      "created_at": 1739375618,
      "updated_at": 1739375618,
      "cached_at": "1739375618.464438000"
    },
    {
      "id": "941714",
      "name": "Lana Kane",
      "email": "lana@simplymadeapps.com",
      "details": "Animi qui omnis.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "2283687",
      "created_at": 1739375618,
      "updated_at": 1739375618,
      "cached_at": "1739375618.470484000"
    },
    {
      "id": "941715",
      "name": "Ray Gillette",
      "email": "ray@simplymadeapps.com",
      "details": "Accusantium quia rem.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "2283687",
      "created_at": 1739375618,
      "updated_at": 1739375618,
      "cached_at": "1739375618.475302000"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 4,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users",
      "last_href": "http://example.org/api/v4/users",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1735833218,
      "beacons": 1739030018,
      "desktop_presences": 1736265218,
      "favorites": 1734537218,
      "fences": 1732204418,
      "groups": 1733154818,
      "networks": 1733759618,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null,
    "trusted_cached_at": "1739375603.481956000"
  }
}

Mark announcements as read

Marks announcements beforehand as read. If an epoch time from the future is passed in, it will become the current time.

Punto de llegada

POST /api/v4/users/my/announcements/read

Parametros

Name Description
read_at requerido (integer) epoch time denoting all announcements before this time have been read

Solicitud

Ruta

POST /api/v4/users/my/announcements/read

Encabezados

Content-Type: application/json
Authorization: Bearer SAezI6ApTMozOpaIOGYxdIxCiaNl9xCwgrjk6PGmuG0

cURL

curl "https://www.simpleinout.com/api/v4/users/my/announcements/read" -d '' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer SAezI6ApTMozOpaIOGYxdIxCiaNl9xCwgrjk6PGmuG0"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (object) the newly updated user attributes

Estado

204

Retrieve a user

Retrieve an existing user. Users must have a role that permits viewing users.

Punto de llegada

GET /api/v4/users/:id

Parametros

Name Description
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Solicitud

Ruta

GET /api/v4/users/941734

Encabezados

Content-Type: application/json
Authorization: Bearer 5kIHNBc9jfM8sg2scO3Pf0-71-9ITtKotSo_RYquD4g

cURL

curl -g "https://www.simpleinout.com/api/v4/users/941734" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 5kIHNBc9jfM8sg2scO3Pf0-71-9ITtKotSo_RYquD4g"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (object) a user object

Estado

200

Encabezados

ETag: W/"0203e93554c828c6f8fdbface4477579"
Last-Modified: Wed, 12 Feb 2025 15:53:38 GMT

Cuerpo

{
  "users": {
    "id": "941734",
    "name": "Sterling Archer",
    "email": "sterling@simplymadeapps.com",
    "details": "Et cum blanditiis.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "2283727",
    "created_at": 1739375618,
    "updated_at": 1739375618,
    "cached_at": "1739375618.933750000"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1737734018,
      "beacons": 1736697218,
      "desktop_presences": 1733759618,
      "favorites": 1737302018,
      "fences": 1732204418,
      "groups": 1738857218,
      "networks": 1739202818,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

Retrieve the current user

Retrieve the current user who is authorized.

Punto de llegada

GET /api/v4/users/my

Parametros

Name Description
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Solicitud

Ruta

GET /api/v4/users/my

Encabezados

Content-Type: application/json
Authorization: Bearer vlX3Sp6d4MAltt5-_BkldxoatXZMvTtK4z5dUA-apWc

cURL

curl -g "https://www.simpleinout.com/api/v4/users/my" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer vlX3Sp6d4MAltt5-_BkldxoatXZMvTtK4z5dUA-apWc"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (object) a user object

Estado

200

Encabezados

ETag: W/"1565edf6e3e27494f2ae4f91dc60a349"
Last-Modified: Wed, 12 Feb 2025 15:53:38 GMT

Cuerpo

{
  "users": {
    "id": "941704",
    "name": "Sterling Archer",
    "email": "sterling@simplymadeapps.com",
    "details": "Repellendus delectus est.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "2283671",
    "created_at": 1739375618,
    "updated_at": 1739375618,
    "cached_at": "1739375618.313156100"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1735401218,
      "beacons": 1737561218,
      "desktop_presences": 1732204418,
      "favorites": 1737129218,
      "fences": 1737474818,
      "groups": 1731858818,
      "networks": 1731167618,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null
  }
}

Unarchive a user

Unarchives an archived user. Users must have a role that permits managing users.

Punto de llegada

POST /api/v4/users/:id/unarchive

Parametros

Name Description
user[email] requerido (string) the user's email address
user[name] (string) the user's full name
user[details] (string) additional text information about the user
user[lang] (string) preferred locale of the user defaulting to the locale of the authorized user, can be en, en-au, en-ca, en-gb, es, fr, fr-ca
user[phones_attributes] (array) phone objects to attach to the user, each with a 'number' attribute
user[memberships_attributes] (array) membership objects to place the user in the group, each with a 'group_id' attribute
user[role_id] requerido (string) the ID of the role to assign to the user
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Solicitud

Ruta

POST /api/v4/users/941758/unarchive

Encabezados

Content-Type: application/json
Authorization: Bearer rr9refpmhQSNREXiE_Eg_mmxmAUxqq_4gI_kvAWuyEk

Cuerpo

{
  "user": {
    "email": "bojack@simplymadeapps.com",
    "role_id": "2283801"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/941758/unarchive" -d '{"user":{"email":"bojack@simplymadeapps.com","role_id":"2283801"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer rr9refpmhQSNREXiE_Eg_mmxmAUxqq_4gI_kvAWuyEk"

Respuesta

Simulated Response

Estado

200

Encabezados

ETag: W/"7c4ab476376fb7280e43daf964c46ede"

Cuerpo

{
  "users": {
    "id": "941758",
    "name": "Pres. Hayden Leffler",
    "email": "bojack@simplymadeapps.com",
    "details": "Omnis aut quia.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "2283801",
    "created_at": 1739375619,
    "updated_at": 1739375619,
    "cached_at": "1739375619.593567000"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1733500419,
      "beacons": 1739202819,
      "desktop_presences": 1735660419,
      "favorites": 1732031619,
      "fences": 1732895619,
      "groups": 1738857219,
      "networks": 1735401219,
      "roles": 1739375619,
      "settings": 1739375619
    },
    "emergency": null
  }
}

Unfavorite a status for the current user

Undoes a previous status’ favorite designation for the current user’s Quick Picks.

Punto de llegada

PATCH /api/v4/users/my/statuses/unfavorite

Parametros

Name Description
status[status] requerido (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (string) up to 50 character description of the status update

Solicitud

Ruta

PATCH /api/v4/users/my/statuses/unfavorite

Encabezados

Content-Type: application/json
Authorization: Bearer gkaOHlFrmA8DRjwDX6gqV1qwyY17CKHBCqS318AP5qc

Cuerpo

{
  "status": {
    "status": "in",
    "comment": "At Lunch"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/statuses/unfavorite" -d '{"status":{"status":"in","comment":"At Lunch"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer gkaOHlFrmA8DRjwDX6gqV1qwyY17CKHBCqS318AP5qc"

Respuesta

Simulated Response

Estado

204

Update a user

Updates an existing user. Users must have a role that permits managing the company/users to update users. Companies must have at least one user with the Administrator role, if you attempt to change the role of the last user with the Administrator role, this will result in a less_than error on the base parameter.

Punto de llegada

PATCH /api/v4/users/:id

Parametros

Name Description
user[email] (string) new user's email address
user[name] (string) new user's full name
user[image_url] (string) url of an image for the user, must be an https url
user[details] (string) additional text information about the user
user[lang] (string) preferred locale of the user, can be en, en-au, en-ca, en-gb, es, fr, fr-ca
user[phones_attributes] (array) phone objects to attach to the user if both 'id' and 'number' are passed in, the existing phone number will be updated if just 'number' is passed in, a new phone will be added if both 'id' and '_destroy' are passed in ('_destroy' being truthy like 'true' or '1'), the phone number will be removed
user[memberships_attributes] (array) group objects to attach to the user if both 'id' and 'group_id' are passed in, the existing membership will be updated if just 'group_id' is passed in, a new membership will be added if both 'id' and '_destroy' are passed in ('_destroy' being truthy like 'true' or '1'), the group membership will be removed
user[role_id] (string) the ID of the role to assign to the user
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Solicitud

Ruta

PATCH /api/v4/users/941709

Encabezados

Content-Type: application/json
Authorization: Bearer xPzUPGAhYG2vWvrNbdD4VTcLr5JP8EcW_MYcKOBt0WM

Cuerpo

{
  "user": {
    "phones_attributes": [
      {
        "number": "199-052-7554"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 58610
      }
    ]
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/941709" -d '{"user":{"phones_attributes":[{"number":"199-052-7554"}],"memberships_attributes":[{"group_id":58610}]}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer xPzUPGAhYG2vWvrNbdD4VTcLr5JP8EcW_MYcKOBt0WM"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (object) the newly updated user attributes

Estado

200

Encabezados

ETag: W/"5e6c64ef6de8897b5ac3cec26324d34d"

Cuerpo

{
  "users": {
    "id": "941709",
    "name": "Sterling Archer",
    "email": "sterling@simplymadeapps.com",
    "details": "Doloribus tenetur alias.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "2283679",
    "created_at": 1739375618,
    "updated_at": 1739375618,
    "cached_at": "1739375618.400741800"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1736697218,
      "beacons": 1734537218,
      "desktop_presences": 1733846018,
      "favorites": 1735142018,
      "fences": 1732463618,
      "groups": 1739375618,
      "networks": 1737561218,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null,
    "update_available": false
  }
}

Update the current user

Updates the currently authorized user. The current user cannot update their own role.

Punto de llegada

PATCH /api/v4/users/my

Parametros

Name Description
user[email] (string) new user's email address
user[name] (string) new user's full name
user[image_url] (string) url of an image for the user, must be an https url
user[details] (string) additional text information about the user
user[lang] (string) preferred locale of the user, can be en, en-au, en-ca, en-gb, es, fr, fr-ca
user[phones_attributes] (array) phone objects to attach to the user if both 'id' and 'number' are passed in, the existing phone number will be updated if just 'number' is passed in, a new phone will be added if both 'id' and '_destroy' are passed in ('_destroy' being truthy like 'true' or '1'), the phone number will be removed
user[memberships_attributes] (array) group objects to attach to the user if both 'id' and 'group_id' are passed in, the existing membership will be updated if just 'group_id' is passed in, a new membership will be added if both 'id' and '_destroy' are passed in ('_destroy' being truthy like 'true' or '1'), the group membership will be removed
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Solicitud

Ruta

PATCH /api/v4/users/my

Encabezados

Content-Type: application/json
Authorization: Bearer sVqtV0csf88Bpc4sYht4yNuWLeHxqBhcdaCN1ZBnCAc

Cuerpo

{
  "user": {
    "phones_attributes": [
      {
        "number": "1-624-217-9741 x743"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 58609
      }
    ]
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my" -d '{"user":{"phones_attributes":[{"number":"1-624-217-9741 x743"}],"memberships_attributes":[{"group_id":58609}]}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer sVqtV0csf88Bpc4sYht4yNuWLeHxqBhcdaCN1ZBnCAc"

Respuesta

Simulated Response

Campos de respuesta

Name Description
users (object) the newly updated user attributes

Estado

200

Encabezados

ETag: W/"c3278e371baab1f6d8c395380e09d830"

Cuerpo

{
  "users": {
    "id": "941700",
    "name": "Trinidad Breitenberg",
    "email": "mallory@simplymadeapps.com",
    "details": "Ut accusamus omnis.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "2283661",
    "created_at": 1739375618,
    "updated_at": 1739375618,
    "cached_at": "1739375618.250612000"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1732895618,
      "beacons": 1736697218,
      "desktop_presences": 1737906818,
      "favorites": 1734450818,
      "fences": 1736697218,
      "groups": 1739375618,
      "networks": 1734537218,
      "roles": 1739375618,
      "settings": 1739375618
    },
    "emergency": null,
    "update_available": false
  }
}