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.

Rate Limiting

APIv4 is protected by daily rate limits. Currently, your application can access APIv4 up to 10,000 times per 24 hour period. Every request to APIv4 will return with two headers: X-RateLimit-Limit and X-RateLimit-Remaining. X-RateLimit-Limit will indicate the total number of requests that can be made against APIv4 over a 24 hour period (always 10,000 for now). X-RateLimit-Remaining will indicate how many requests you have left.

When you’ve run out of requests, APIv4 will return a HTTP status of 429 indicating Too Many Requests.

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": {
    "beacons": 1435250484,
    "favorites": 1437151284,
    "fences": 1436546484,
    "groups": 1436287284,
    "networks": 1436287284,
    "settings": 1439916084
  }
}}

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.


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/update/delete the object, some data was either missing or invalid. The full message of this error will provide more explanation.


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.


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.

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,
      "tablet_access": 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": true,
      "manage_own_status": true,
      "view_badges": false,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "view_status_updated_at": true,
      "view_users": true,
      "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": "[email protected]",
  "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"
    }
  }
}



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.

Endpoint

GET /oauth/authorize

Parameters

Name Description
response_type required (string) the type of authorization to use, in this case always 'code'
client_id required (string) your API client key
redirect_uri required (string) the URI to return the user to after authenticating, must match those registered with Simple In/Out
scope required (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'

Request

Route

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

Headers

Content-Type: application/json

Query Parameters

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"

Response

Simulated Response

Status

302

Body

<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 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.

Endpoint

POST /oauth/token

Parameters

Name Description
grant_type required (string) type of grant to use
client_id required (string) your API client key
client_secret required (string) your API client secret
code required (string) if using Authorization Code grant, this is the code that is returned from Simple In/Out
redirect_uri required (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'

Request

Route

POST /oauth/token

Headers

Content-Type: application/json

Body

{
  "grant_type": "authorization_code",
  "client_id": "YOUR_API_CLIENT_ID",
  "client_secret": "YOUR_API_CLIENT_SECRET",
  "code": "jEglN3DrXA6mGhRpquMdjMZqNTVFiEKSdOrvh8ZjTVQ",
  "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":"jEglN3DrXA6mGhRpquMdjMZqNTVFiEKSdOrvh8ZjTVQ","redirect_uri":"https://www.simplymadeapps.com/redirect/url"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Response

Simulated Response

Response Fields

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.

Status

200

Headers

ETag: W/"448ec2e1ff2878f921e988f91a15766d"

Body

{
  "access_token": "ScF4Nafkwx74aJOKln8-on3FWbQxKXV_yFS8b-gnc0c",
  "token_type": "Bearer",
  "expires_in": 7200,
  "refresh_token": "5Ms-VENARL2t9m9o5deM6kvjIrIfzH1ikPdM0ah1soI",
  "scope": "write",
  "created_at": 1687196887,
  "user": {
    "id": "164390",
    "company_id": "89919",
    "roles": {
      "id": "399014",
      "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,
      "created_at": 1687196887,
      "updated_at": 1687196887
    }
  }
}

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.

Endpoint

POST /oauth/token

Parameters

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

Request

Route

POST /oauth/token

Headers

Content-Type: application/json

Body

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

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":"ycesz1zc79a7at1hutt1n81p9i4tc76l"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Response

Simulated Response

Response Fields

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.

Status

200

Headers

ETag: W/"7de22fc510660f8335896953b6905baf"

Body

{
  "access_token": "XUKqZAmVl30ktMppzKSQY8eZxp_hK1Jw5SkSk1EZLyk",
  "token_type": "Bearer",
  "expires_in": 604800,
  "refresh_token": "C1UbJtaSJmDaYq_7Aq2wrC1tviudb--LDrruSfAOuWM",
  "scope": "write",
  "created_at": 1687196886,
  "user": {
    "id": "164385",
    "company_id": "89916",
    "roles": {
      "id": "399002",
      "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,
      "created_at": 1687196886,
      "updated_at": 1687196886
    }
  }
}

Revoke a token

Revokes a token, rendering it invalid.

Endpoint

POST /oauth/revoke

Parameters

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

Request

Route

POST /oauth/revoke

Headers

Content-Type: application/json

Body

{
  "client_id": "8660701322461",
  "client_secret": "6338213709644",
  "token": "3KdhSE6iYh-1gj3u8I5dtKs2apb9Vp6HBIZsaeNqELw"
}

cURL

curl "https://www.simpleinout.com/oauth/revoke" -d '{"client_id":"8660701322461","client_secret":"6338213709644","token":"3KdhSE6iYh-1gj3u8I5dtKs2apb9Vp6HBIZsaeNqELw"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Response

Simulated Response

Status

200

Headers

ETag: W/"44136fa355b3678a1146ad16f7e8649e"

Body

{}

Token information

Provides details about the OAuth token.

Endpoint

GET /oauth/token/info

Request

Route

GET /oauth/token/info

Headers

Content-Type: application/json
Authorization: Bearer SFaj3Z-ZgXUYV597YYsYY-k1gvyvE7N3VED9eXu7VcQ

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 SFaj3Z-ZgXUYV597YYsYY-k1gvyvE7N3VED9eXu7VcQ"

Response

Simulated Response

Response Fields

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

Status

200

Headers

ETag: W/"50e1606abe5d13519430ea461f08dea7"

Body

{
  "resource_owner_id": 164389,
  "scope": [
    "read"
  ],
  "expires_in": 604800,
  "application": {
    "uid": "3266140730017"
  },
  "created_at": 1687196887
}

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.

Endpoint

POST /api/v4/beacons

Parameters

Name Description
beacon[name] required (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', 'out', or 'off', defaults to 'in'
beacon[status_on_exit] (string) the status to apply on exit: 'in', 'out', or 'off', defaults to 'out'

Request

Route

POST /api/v4/beacons

Headers

Content-Type: application/json
Authorization: Bearer Wqym9kuITaj_PezvM7Nf_pBhLtsjJEwlfrdB4eSGd68

Body

{
  "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 Wqym9kuITaj_PezvM7Nf_pBhLtsjJEwlfrdB4eSGd68"

Response

Simulated Response

Response Fields

Name Description
beacons (object) the newly created beacon attributes

Status

201

Headers

ETag: W/"fb63d2e18eaff807b2470b8b6c5ce7f0"

Body

{
  "beacons": {
    "id": "4106",
    "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": 1687196888,
    "updated_at": 1687196888
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1687196888,
      "desktop_presences": 1683740888,
      "favorites": 1687110488,
      "fences": 1683740888,
      "groups": 1682012888,
      "networks": 1681494488,
      "roles": 1687196888,
      "settings": 1687196888
    }
  }
}

Delete a beacon

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

Endpoint

DELETE /api/v4/beacons/:id

Request

Route

DELETE /api/v4/beacons/4110

Headers

Content-Type: application/json
Authorization: Bearer T2yIfEBqH0GgwaANajuamKHUQP9PA3G4Dm7U5aUbh3g

cURL

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

Response

Simulated Response

Status

204

List all beacons

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

Endpoint

GET /api/v4/beacons

Parameters

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

Request

Route

GET /api/v4/beacons

Headers

Content-Type: application/json
Authorization: Bearer R3H3tA1NAVZUyw_7SleuXj16sva6LIzKZE8O0_92Yjw

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 R3H3tA1NAVZUyw_7SleuXj16sva6LIzKZE8O0_92Yjw"

Response

Simulated Response

Response Fields

Name Description
beacons (array) an array of beacons

Status

200

Headers

ETag: W/"f0861e663f82e97e03197f338508363b"
Last-Modified: Mon, 19 Jun 2023 17:48:08 GMT

Body

{
  "beacons": [
    {
      "id": "4108",
      "name": "Kilback Inc",
      "uuid": "173B80D3-C550-4BD8-AA84-05BB3013DCCC",
      "comment_on_entry": "In at Kilback Inc",
      "comment_on_exit": "Left Kilback Inc",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1687196888,
      "updated_at": 1687196888
    },
    {
      "id": "4109",
      "name": "Williamson, Spinka and Beer",
      "uuid": "EF65304B-7E71-43B1-A4DE-46D76BA03EE1",
      "comment_on_entry": "In at Williamson, Spinka and Beer",
      "comment_on_exit": "Left Williamson, Spinka and Beer",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1687196888,
      "updated_at": 1687196888
    }
  ],
  "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": {
      "beacons": 1687196888,
      "desktop_presences": 1685641688,
      "favorites": 1683222488,
      "fences": 1684691288,
      "groups": 1682876888,
      "networks": 1679248088,
      "roles": 1687196888,
      "settings": 1687196888
    }
  }
}

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.

Endpoint

PATCH /api/v4/beacons/:id

Parameters

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', 'out', or 'off', defaults to 'in'
beacon[status_on_exit] (string) the status to apply on exit: 'in', 'out', or 'off', defaults to 'out'

Request

Route

PATCH /api/v4/beacons/4107

Headers

Content-Type: application/json
Authorization: Bearer CT8Ut2_h7cvwje8LDgBcS8cmhrn2OrSCdEs7WChnEyY

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
beacons (object) the newly updated beacon attributes

Status

200

Headers

ETag: W/"07cdc7be2982a738a70c671eb75b9db9"

Body

{
  "beacons": {
    "id": "4107",
    "name": "My Renamed Office",
    "uuid": "CF9B5D9E-25A7-417E-B8F2-3A17393EE22A",
    "comment_on_entry": "In at Crooks, Jacobi and Legros",
    "comment_on_exit": "Left Crooks, Jacobi and Legros",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1687196888,
    "updated_at": 1687196888
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1687196888,
      "desktop_presences": 1679593688,
      "favorites": 1679420888,
      "fences": 1680457688,
      "groups": 1680716888,
      "networks": 1681840088,
      "roles": 1687196888,
      "settings": 1687196888
    }
  }
}

Companies

Retrieve the current company

Return the company the authorized user belongs to.

Endpoint

GET /api/v4/companies/my

Parameters

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

Request

Route

GET /api/v4/companies/my

Headers

Content-Type: application/json
Authorization: Bearer JxA29U7S0ea3N8ji-J6puuKIkZ2mOam67sDxA80plMw

cURL

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

Response

Simulated Response

Response Fields

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[created_at] (integer) epoch time the company was created

Status

200

Headers

ETag: W/"4423b1283b65c438b1f89c671d422f42"
Last-Modified: Mon, 19 Jun 2023 17:48:07 GMT

Body

{
  "companies": {
    "id": "89925",
    "available_statuses": [
      "in",
      "out"
    ],
    "name": "Hand, Conroy and Nolan",
    "scheduled_statuses": true,
    "default_role_id": "399040",
    "logo_url": null,
    "created_at": 1687196887
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1685641687,
      "desktop_presences": 1685123287,
      "favorites": 1679593687,
      "fences": 1680889687,
      "groups": 1681753687,
      "networks": 1682963287,
      "roles": 1687196887,
      "settings": 1687196887
    }
  }
}

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.

Endpoint

DELETE /api/v4/futures/:id

Request

Route

DELETE /api/v4/futures/4021

Headers

Content-Type: application/json
Authorization: Bearer JCIGKgUkbFX1GGgpZrCR4Gpjhjkesw-Fhi8wVMS7IN4

cURL

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

Response

Simulated Response

Status

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.

Endpoint

GET /api/v4/futures

Parameters

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, either 'in' or 'out'
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'

Request

Route

GET /api/v4/futures

Headers

Content-Type: application/json
Authorization: Bearer P6MYjQv8EyGT8vT_zlxgScaO9gJUYv1IP8tFqm4G4lI

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 P6MYjQv8EyGT8vT_zlxgScaO9gJUYv1IP8tFqm4G4lI"

Response

Simulated Response

Response Fields

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

Status

200

Headers

ETag: W/"bcf3d021a4ed107e3cceaa51eb3c59c0"
Last-Modified: Mon, 19 Jun 2023 17:48:08 GMT

Body

{
  "futures": [
    {
      "id": "4022",
      "status": "out",
      "comment": "On Vacation, back Monday",
      "apply_at": 1689786000,
      "user_id": "164407",
      "changed_by_user_id": null
    },
    {
      "id": "4023",
      "status": "out",
      "comment": "At the conference this week",
      "apply_at": 1703008800,
      "user_id": "164407",
      "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": {
      "beacons": 1686851288,
      "desktop_presences": 1683740888,
      "favorites": 1685987288,
      "fences": 1685728088,
      "groups": 1680112088,
      "networks": 1681667288,
      "roles": 1687196888,
      "settings": 1687196888
    }
  }
}

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.

Endpoint

POST /api/v4/fences

Parameters

Name Description
fence[name] required (string) the name of the fence
fence[latitude] required (float) the latitude of the center point of the fence
fence[longitude] required (float) the longitude of the center point of the fence
fence[radius] required (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', 'out', or 'off', defaults to 'in'
fence[status_on_exit] (string) the status to apply on exit: 'in', 'out', or 'off', defaults to 'out'

Request

Route

POST /api/v4/fences

Headers

Content-Type: application/json
Authorization: Bearer Kad8Xe9VqDnfcKfz8zm-uAok2ucnq4JAS6JJbM6Ig4M

Body

{
  "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 Kad8Xe9VqDnfcKfz8zm-uAok2ucnq4JAS6JJbM6Ig4M"

Response

Simulated Response

Response Fields

Name Description
fences (object) the newly created fence attributes

Status

201

Headers

ETag: W/"e214379c88a19b53f399f3c54937ffff"

Body

{
  "fences": {
    "id": "1715",
    "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": 1687196885,
    "updated_at": 1687196885
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1687110485,
      "desktop_presences": 1680284885,
      "favorites": 1685123285,
      "fences": 1687196885,
      "groups": 1681580885,
      "networks": 1687110485,
      "roles": 1687196885,
      "settings": 1687196885
    }
  }
}

Delete a fence

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

Endpoint

DELETE /api/v4/fences/:id

Request

Route

DELETE /api/v4/fences/1711

Headers

Content-Type: application/json
Authorization: Bearer pJqdyKWZp2dtrcmymvt0fKyOYqNGiJf9hIbP4ANQTfg

cURL

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

Response

Simulated Response

Status

204

List all fences

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

Endpoint

GET /api/v4/fences

Parameters

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

Request

Route

GET /api/v4/fences

Headers

Content-Type: application/json
Authorization: Bearer ZzDxu2SjZIlIgjduZsffhu7tfjzTynE4iYGO7PsV8tk

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 ZzDxu2SjZIlIgjduZsffhu7tfjzTynE4iYGO7PsV8tk"

Response

Simulated Response

Response Fields

Name Description
fences (array) an array of fences

Status

200

Headers

ETag: W/"9d8020e612f3390c2fdd5400fbd18791"
Last-Modified: Mon, 19 Jun 2023 17:48:05 GMT

Body

{
  "fences": [
    {
      "id": "1712",
      "name": "otrxdnfimbgdfyzic3vm",
      "latitude": "72.4402123142",
      "longitude": "66.4575374524",
      "radius": 14454,
      "comment_on_entry": "In at otrxdnfimbgdfyzic3vm",
      "comment_on_exit": "Left otrxdnfimbgdfyzic3vm",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1687196885,
      "updated_at": 1687196885
    },
    {
      "id": "1713",
      "name": "c725ht2q16asnvxcjab7",
      "latitude": "67.8401069485",
      "longitude": "-117.074690417",
      "radius": 5900,
      "comment_on_entry": "In at c725ht2q16asnvxcjab7",
      "comment_on_exit": "Left c725ht2q16asnvxcjab7",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1687196885,
      "updated_at": 1687196885
    }
  ],
  "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": {
      "beacons": 1682099285,
      "desktop_presences": 1679334485,
      "favorites": 1686246485,
      "fences": 1687196885,
      "groups": 1686851285,
      "networks": 1686764885,
      "roles": 1687196885,
      "settings": 1687196885
    }
  }
}

Update a fence

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

Endpoint

PATCH /api/v4/fences/:id

Parameters

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', 'out', or 'off', defaults to 'in'
fence[status_on_exit] (string) the status to apply on exit: 'in', 'out', or 'off', defaults to 'out'

Request

Route

PATCH /api/v4/fences/1714

Headers

Content-Type: application/json
Authorization: Bearer bLI1dNRRktW1Jo2thd8JBvHo-C1JsCmFYDAQILcToVg

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
fences (object) the newly updated fence attributes

Status

200

Headers

ETag: W/"9471c398b0c63801348deaedea8f9160"

Body

{
  "fences": {
    "id": "1714",
    "name": "My Renamed Geofence",
    "latitude": "-31.4410068603",
    "longitude": "98.8324632645",
    "radius": 15420,
    "comment_on_entry": "In at wjspitja6phmdm7jl86x",
    "comment_on_exit": "Left wjspitja6phmdm7jl86x",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1687196885,
    "updated_at": 1687196885
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1682099285,
      "desktop_presences": 1686678485,
      "favorites": 1684777685,
      "fences": 1687196885,
      "groups": 1686851285,
      "networks": 1684432085,
      "roles": 1687196885,
      "settings": 1687196885
    }
  }
}

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.

Endpoint

POST /api/v4/groups

Parameters

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

Request

Route

POST /api/v4/groups

Headers

Content-Type: application/json
Authorization: Bearer iCmkpG7_F5PkH_Hz0Sh9EEnFQkxG3uOnJooEoshWamg

Body

{
  "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 iCmkpG7_F5PkH_Hz0Sh9EEnFQkxG3uOnJooEoshWamg"

Response

Simulated Response

Response Fields

Name Description
groups (object) the newly created group attributes

Status

201

Headers

ETag: W/"6a28e77be390248e77199e592b26a04a"

Body

{
  "groups": {
    "id": "15273",
    "name": "New Department"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1684777693,
      "desktop_presences": 1685296093,
      "favorites": 1681667293,
      "fences": 1682876893,
      "groups": 1687196893,
      "networks": 1680198493,
      "roles": 1687196893,
      "settings": 1687196893
    }
  }
}

Delete a group

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

Endpoint

DELETE /api/v4/groups/:id

Request

Route

DELETE /api/v4/groups/15277

Headers

Content-Type: application/json
Authorization: Bearer kRUCMMlR4rf_4M9RwfTBTqLq2Mw0O8VUUBZ__MV9HS8

cURL

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

Response

Simulated Response

Status

204

List all groups

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

Endpoint

GET /api/v4/groups

Parameters

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

Request

Route

GET /api/v4/groups

Headers

Content-Type: application/json
Authorization: Bearer XYUIJ_bMp7KbSg7Xxf1T49o9dxxergeDT4eK0Pk6A2Y

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 XYUIJ_bMp7KbSg7Xxf1T49o9dxxergeDT4eK0Pk6A2Y"

Response

Simulated Response

Response Fields

Name Description
groups (array) an array of groups

Status

200

Headers

ETag: W/"55d277e78b947b5d954c98e56a0dca4b"
Last-Modified: Mon, 19 Jun 2023 17:48:13 GMT

Body

{
  "groups": [
    {
      "id": "15274",
      "name": "McClure-Blick"
    },
    {
      "id": "15275",
      "name": "Russel, Labadie and Kuhic"
    }
  ],
  "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": {
      "beacons": 1681235293,
      "desktop_presences": 1679507293,
      "favorites": 1684086493,
      "fences": 1680112093,
      "groups": 1687196893,
      "networks": 1684345693,
      "roles": 1687196893,
      "settings": 1687196893
    }
  }
}

Update a group

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

Endpoint

PATCH /api/v4/groups/:id

Parameters

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

Request

Route

PATCH /api/v4/groups/15276

Headers

Content-Type: application/json
Authorization: Bearer yoKevRrFtX76dHGwzTFftXmNy65nERfQlLkCwhS2XWk

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
groups (object) the newly updated group attributes

Status

200

Headers

ETag: W/"0042dcc7a6b625ea6284d194bcd4c740"

Body

{
  "groups": {
    "id": "15276",
    "name": "Renamed Department"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1680803293,
      "desktop_presences": 1683740893,
      "favorites": 1681580893,
      "fences": 1678988893,
      "groups": 1687196893,
      "networks": 1682704093,
      "roles": 1687196893,
      "settings": 1687196893
    }
  }
}

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.

Endpoint

POST /api/v4/networks

Parameters

Name Description
network[name] required (string) the name of the network, no longer than 44 characters
network[ssid] required (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', 'out', or 'off', defaults to 'in'
network[status_on_exit] (string) the status to apply on exit: 'in', 'out', or 'off', defaults to 'out'

Request

Route

POST /api/v4/networks

Headers

Content-Type: application/json
Authorization: Bearer Zyh3S4gwv7Rrt6FE2my9L7So3ajZev6Mv_RekPf8_DU

Body

{
  "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 Zyh3S4gwv7Rrt6FE2my9L7So3ajZev6Mv_RekPf8_DU"

Response

Simulated Response

Response Fields

Name Description
networks (object) the newly created network attributes

Status

201

Headers

ETag: W/"2a0552e9f99e5475369ac3c3101e1a4d"

Body

{
  "networks": {
    "id": "1541",
    "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": 1687196890,
    "updated_at": 1687196890
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1679248090,
      "desktop_presences": 1680371290,
      "favorites": 1683568090,
      "fences": 1678902490,
      "groups": 1687024090,
      "networks": 1687196890,
      "roles": 1687196890,
      "settings": 1687196890
    }
  }
}

Delete a network

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

Endpoint

DELETE /api/v4/networks/:id

Request

Route

DELETE /api/v4/networks/1540

Headers

Content-Type: application/json
Authorization: Bearer 6E1z4p0BuzAV4Sqb4aULLA0Wb2KpIqOQEStdnGLVQZA

cURL

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

Response

Simulated Response

Status

204

List all networks

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

Endpoint

GET /api/v4/networks

Parameters

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

Request

Route

GET /api/v4/networks

Headers

Content-Type: application/json
Authorization: Bearer TiiTT7ip9b9XMKHfoDScrDi8qIZ4blJ8bB5whecrHOQ

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 TiiTT7ip9b9XMKHfoDScrDi8qIZ4blJ8bB5whecrHOQ"

Response

Simulated Response

Response Fields

Name Description
networks (array) an array of networks

Status

200

Headers

ETag: W/"06769446ecb595f0f32806e4696d41ef"
Last-Modified: Mon, 19 Jun 2023 17:48:10 GMT

Body

{
  "networks": [
    {
      "id": "1542",
      "name": "Wunsch and Sons",
      "ssid": "eq5dof4msqfck524rbze6oav7f9zhjc1",
      "comment_on_entry": "In at Wunsch and Sons",
      "comment_on_exit": "Left Wunsch and Sons",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1687196890,
      "updated_at": 1687196890
    },
    {
      "id": "1543",
      "name": "Hickle-Batz",
      "ssid": "utg8o9xdcmhujnp2bsikgfauil0sayb1",
      "comment_on_entry": "In at Hickle-Batz",
      "comment_on_exit": "Left Hickle-Batz",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1687196890,
      "updated_at": 1687196890
    }
  ],
  "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": {
      "beacons": 1684950490,
      "desktop_presences": 1678643290,
      "favorites": 1680371290,
      "fences": 1678643290,
      "groups": 1682185690,
      "networks": 1687196890,
      "roles": 1687196890,
      "settings": 1687196890
    }
  }
}

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.

Endpoint

PATCH /api/v4/networks/:id

Parameters

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', 'out', or 'off', defaults to 'in'
network[status_on_exit] (string) the status to apply on exit: 'in', 'out', or 'off', defaults to 'out'

Request

Route

PATCH /api/v4/networks/1539

Headers

Content-Type: application/json
Authorization: Bearer sMuQQa1a7kDR94JJz4bOZPahIxOCJe9E7FE7MSwEiDA

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
networks (object) the newly updated network attributes

Status

200

Headers

ETag: W/"791c83df6323cbb7cd2b7ef2f8d0b9bd"

Body

{
  "networks": {
    "id": "1539",
    "name": "My Renamed Office",
    "ssid": "eiiilr1iu5u9du3avfjmi27n32ds16rj",
    "comment_on_entry": "In at Goldner Group",
    "comment_on_exit": "Left Goldner Group",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1687196890,
    "updated_at": 1687196890
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1684518490,
      "desktop_presences": 1681753690,
      "favorites": 1679248090,
      "fences": 1685728090,
      "groups": 1684518490,
      "networks": 1687196890,
      "roles": 1687196890,
      "settings": 1687196890
    }
  }
}

Ok

Make sure things are Ok

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

Endpoint

GET /api/v4/ok

Request

Route

GET /api/v4/ok

Headers

Content-Type: application/json
Authorization: Bearer x6LWMkG3rVbwFPCJuOU5grVGUjUrKbt7KnAi_tf4C5M

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 x6LWMkG3rVbwFPCJuOU5grVGUjUrKbt7KnAi_tf4C5M"

Response

Simulated Response

Status

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.

Endpoint

POST /api/v4/roles

Parameters

Name Description
role[name] required (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 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 others by adding and deleting status updates.
role[manage_others_futures] (boolean) these users can schedule future status updates for other users.
role[manage_others_status] (boolean) these users can change the current status of other 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 other users.
role[view_others_futures] (boolean) these users can view the scheduled status updates for other users.
role[view_others_reports] (boolean) these users can run reports on the status history of other users.
role[view_user_board_updated_at] (boolean) these users can view the time that status updates were made on the board.

Request

Route

POST /api/v4/roles

Headers

Content-Type: application/json
Authorization: Bearer DDOZA4cop-MvkfTpFP2PYQFZxlEAXzvlHafnck3_5Ns

Body

{
  "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
  }
}

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}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer DDOZA4cop-MvkfTpFP2PYQFZxlEAXzvlHafnck3_5Ns"

Response

Simulated Response

Response Fields

Name Description
roles (object) the newly created role attributes

Status

201

Headers

ETag: W/"f3c376515d3c52207018886eebcdac39"

Body

{
  "roles": {
    "id": "398997",
    "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,
    "view_user_board_updated_at": false,
    "created_at": 1687196886,
    "updated_at": 1687196886
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1679766486,
      "desktop_presences": 1679593686,
      "favorites": 1684000086,
      "fences": 1681148886,
      "groups": 1682358486,
      "networks": 1681408086,
      "roles": 1687196886,
      "settings": 1687196886
    }
  }
}

Delete a role

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

Endpoint

DELETE /api/v4/roles/:id

Request

Route

DELETE /api/v4/roles/398992

Headers

Content-Type: application/json
Authorization: Bearer mXdHeRKdQBzpdoKgooAuhkgvaCDwGiy324FgbrU4srY

cURL

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

Response

Simulated Response

Status

204

List all roles

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

Endpoint

GET /api/v4/roles

Parameters

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

Request

Route

GET /api/v4/roles

Headers

Content-Type: application/json
Authorization: Bearer AfmJB-_NLE8XZ9BpUxW7cu4zEXh3dTzcCSPePI_n4Ro

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 AfmJB-_NLE8XZ9BpUxW7cu4zEXh3dTzcCSPePI_n4Ro"

Response

Simulated Response

Response Fields

Name Description
roles (array) an array of roles

Status

200

Headers

ETag: W/"a536b661887086c581f3da1e4dc3f371"
Last-Modified: Mon, 19 Jun 2023 17:48:06 GMT

Body

{
  "roles": [
    {
      "id": "398999",
      "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,
      "view_user_board_updated_at": true,
      "created_at": 1687196886,
      "updated_at": 1687196886
    },
    {
      "id": "399001",
      "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,
      "view_user_board_updated_at": true,
      "created_at": 1687196886,
      "updated_at": 1687196886
    },
    {
      "id": "398998",
      "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,
      "created_at": 1687196886,
      "updated_at": 1687196886
    },
    {
      "id": "399000",
      "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,
      "created_at": 1687196886,
      "updated_at": 1687196886
    }
  ],
  "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": {
      "beacons": 1680803286,
      "desktop_presences": 1680630486,
      "favorites": 1685555286,
      "fences": 1682876886,
      "groups": 1686419286,
      "networks": 1682790486,
      "roles": 1687196886,
      "settings": 1687196886
    }
  }
}

Retrieve a role

Retrieve an existing role.

Endpoint

GET /api/v4/roles/:id

Request

Route

GET /api/v4/roles/398982

Headers

Content-Type: application/json
Authorization: Bearer Ir300S0O0Isi4Z43Iesqm7t-2XBOFTJz0YZYrTwoNnY

cURL

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

Response

Simulated Response

Response Fields

Name Description
roles (object) the role attributes

Status

200

Headers

ETag: W/"665512349aebfeff849c102ca341afce"
Last-Modified: Mon, 19 Jun 2023 17:48:06 GMT

Body

{
  "roles": {
    "id": "398982",
    "name": "Stroman-Senger",
    "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,
    "view_user_board_updated_at": false,
    "created_at": 1687196886,
    "updated_at": 1687196886
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1681753686,
      "desktop_presences": 1683395286,
      "favorites": 1685123286,
      "fences": 1682790486,
      "groups": 1683395286,
      "networks": 1683568086,
      "roles": 1687196886,
      "settings": 1687196886
    },
    "update_available": false
  }
}

Update a role

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

Endpoint

PATCH /api/v4/roles/:id

Parameters

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 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 others by adding and deleting status updates.
role[manage_others_futures] (boolean) these users can schedule future status updates for other users.
role[manage_others_status] (boolean) these users can change the current status of other 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 other users.
role[view_others_futures] (boolean) these users can view the scheduled status updates for other users.
role[view_others_reports] (boolean) these users can run reports on the status history of other users.
role[view_user_board_updated_at] (boolean) these users can view the time that status updates were made on the board.

Request

Route

PATCH /api/v4/roles/398987

Headers

Content-Type: application/json
Authorization: Bearer K0BursKmy9qBtwrmXmmC35F5UodAV4NtjXbpCSKBQoY

Body

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

cURL

curl "https://www.simpleinout.com/api/v4/roles/398987" -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 K0BursKmy9qBtwrmXmmC35F5UodAV4NtjXbpCSKBQoY"

Response

Simulated Response

Response Fields

Name Description
roles (object) the newly updated role attributes

Status

200

Headers

ETag: W/"d2774f57e21c102dd577a0f4e4731a07"

Body

{
  "roles": {
    "id": "398987",
    "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,
    "view_user_board_updated_at": false,
    "created_at": 1687196886,
    "updated_at": 1687196886
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1681062486,
      "desktop_presences": 1683827286,
      "favorites": 1683308886,
      "fences": 1682876886,
      "groups": 1679161686,
      "networks": 1685123286,
      "roles": 1687196886,
      "settings": 1687196886
    }
  }
}

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.

Endpoint

GET /api/v4/statuses

Parameters

Name Description
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results
created_at required (string) a date range string for the time the status was created
status (string) the status, either 'in' or 'out'
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'

Request

Route

GET /api/v4/statuses?created_at=1686546000..1686805199

Headers

Content-Type: application/json
Authorization: Bearer 3vgFh8aFolZX07M413f7eUL-yOfL6oFhtV1DVc19ff0

Query Parameters

created_at=1686546000..1686805199

cURL

curl -g "https://www.simpleinout.com/api/v4/statuses?created_at=1686546000..1686805199" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 3vgFh8aFolZX07M413f7eUL-yOfL6oFhtV1DVc19ff0"

Response

Simulated Response

Response Fields

Name Description
statuses (array) an array of matching statuses

Status

200

Headers

ETag: W/"91bd158b862d0dbd43ed6f406cadcfff"
Last-Modified: Tue, 13 Jun 2023 14:00:00 GMT

Body

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "164442",
      "changed_by_user_id": null,
      "created_at": 1686553200
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": true,
      "user_id": "164442",
      "changed_by_user_id": null,
      "created_at": 1686567600
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "164442",
      "changed_by_user_id": null,
      "created_at": 1686571200
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "164442",
      "changed_by_user_id": null,
      "created_at": 1686589200
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": true,
      "user_id": "164442",
      "changed_by_user_id": null,
      "created_at": 1686639600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": true,
      "user_id": "164442",
      "changed_by_user_id": null,
      "created_at": 1686661200
    },
    {
      "status": "out",
      "comment": "On Vacation",
      "automatic": false,
      "user_id": "164442",
      "changed_by_user_id": "164443",
      "created_at": 1686664800
    }
  ],
  "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=1686546000..1686805199",
      "last_href": "http://example.org/api/v4/statuses?created_at=1686546000..1686805199",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1685728089,
      "desktop_presences": 1685123289,
      "favorites": 1680716889,
      "fences": 1685641689,
      "groups": 1683827289,
      "networks": 1678988889,
      "roles": 1687196890,
      "settings": 1687196890
    }
  }
}

Users

Archive a user

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

Endpoint

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

Request

Route

POST /api/v4/users/164402/archive

Headers

Content-Type: application/json
Authorization: Bearer BEW6q4vRjsmmB588bXRzJX0889L62bEUXhc8vjRE1Pk

cURL

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

Response

Simulated Response

Status

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.

Endpoint

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

Parameters

Name Description
future[status] required (string) must be 'in' or 'out'
future[apply_at] required (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
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'

Request

Route

POST /api/v4/users/164464/futures

Headers

Content-Type: application/json
Authorization: Bearer dwb08WaqNrpBNYPulPLRNDnE_Yjk50OX5hby4aX6xPg

Body

{
  "future": {
    "status": "out",
    "apply_at": 1692464400,
    "comment": "On Vacation"
  }
}

cURL

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

Response

Simulated Response

Response Fields

Name Description
futures (object) the newly created future object

Status

201

Headers

ETag: W/"242018e62d12888d76219ffb4af3d8da"

Body

{
  "futures": {
    "id": "4024",
    "status": "out",
    "comment": "On Vacation",
    "apply_at": 1692464400,
    "user_id": "164464",
    "changed_by_user_id": "164463"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1687110491,
      "desktop_presences": 1686851291,
      "favorites": 1681926491,
      "fences": 1679593691,
      "groups": 1685382491,
      "networks": 1684777691,
      "roles": 1687196891,
      "settings": 1687196891
    }
  }
}

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.

Endpoint

POST /api/v4/users/my/futures

Parameters

Name Description
future[status] required (string) must be 'in' or 'out'
future[apply_at] required (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
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'

Request

Route

POST /api/v4/users/my/futures

Headers

Content-Type: application/json
Authorization: Bearer sm8QDkpSDx_SZPVIeN8RhsePqm3gY0C2X0TAxKY4xig

Body

{
  "future": {
    "status": "out",
    "apply_at": 1692464400,
    "comment": "On Vacation"
  }
}

cURL

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

Response

Simulated Response

Response Fields

Name Description
futures (object) the newly created future object

Status

201

Headers

ETag: W/"f82bed105cfd4e45cad62bf5df1a21c5"

Body

{
  "futures": {
    "id": "4027",
    "status": "out",
    "comment": "On Vacation",
    "apply_at": 1692464400,
    "user_id": "164483",
    "changed_by_user_id": null
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1680976091,
      "desktop_presences": 1679766491,
      "favorites": 1686332891,
      "fences": 1683568091,
      "groups": 1679593691,
      "networks": 1681148891,
      "roles": 1687196891,
      "settings": 1687196891
    }
  }
}

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.

Endpoint

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

Parameters

Name Description
status[status] required (string) must be 'in' or 'out'
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'

Request

Route

POST /api/v4/users/164504/statuses

Headers

Content-Type: application/json
Authorization: Bearer JrnUrNGc0MNzdSrtZ8_KQ7jrLavsnP6ZiocDbNXSBOs

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
statuses (object) the newly created status object

Status

201

Headers

ETag: W/"26cff8bea451d5f14640fcc4a9e5523c"

Body

{
  "statuses": {
    "status": "in",
    "comment": "In at HQ",
    "automatic": false,
    "user_id": "164504",
    "changed_by_user_id": "164503",
    "created_at": 1687196892
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1683827292,
      "desktop_presences": 1679680092,
      "favorites": 1684086492,
      "fences": 1685900892,
      "groups": 1678988892,
      "networks": 1683049692,
      "roles": 1687196892,
      "settings": 1687196892
    }
  }
}

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.

Endpoint

POST /api/v4/users/my/statuses

Parameters

Name Description
status[status] required (string) must be 'in' or 'out'
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'

Request

Route

POST /api/v4/users/my/statuses

Headers

Content-Type: application/json
Authorization: Bearer rz9SlG-JZB7WuLy0nQn9joEx2iUlg76WtKE_1sD1xCo

Body

{
  "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 rz9SlG-JZB7WuLy0nQn9joEx2iUlg76WtKE_1sD1xCo"

Response

Simulated Response

Response Fields

Name Description
statuses (object) the newly created status object

Status

201

Headers

ETag: W/"1c5a93c00e002cb90490fd0233c98921"

Body

{
  "statuses": {
    "status": "in",
    "comment": "In at HQ",
    "automatic": false,
    "user_id": "164467",
    "changed_by_user_id": null,
    "created_at": 1687196891
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1684604891,
      "desktop_presences": 1687110491,
      "favorites": 1685814491,
      "fences": 1681408091,
      "groups": 1678729691,
      "networks": 1685123291,
      "roles": 1687196891,
      "settings": 1687196891
    }
  }
}

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.

Endpoint

POST /api/v4/users

Parameters

Name Description
user[email] required (string) new user's email address
user[name] required (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[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] required (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', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

POST /api/v4/users

Headers

Content-Type: application/json
Authorization: Bearer h1xIgxPhNLNqSC5Ce1oX6zdVMCyh46rcKkZlJkazTFo

Body

{
  "user": {
    "email": "[email protected]",
    "name": "Bojack Horseman",
    "details": "Lead Actor",
    "lang": "en",
    "phones_attributes": [
      {
        "number": "1-587-376-2786 x131"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 15270
      }
    ],
    "role_id": "399242"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users" -d '{"user":{"email":"[email protected]","name":"Bojack Horseman","details":"Lead Actor","lang":"en","phones_attributes":[{"number":"1-587-376-2786 x131"}],"memberships_attributes":[{"group_id":15270}],"role_id":"399242"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer h1xIgxPhNLNqSC5Ce1oX6zdVMCyh46rcKkZlJkazTFo"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly created user object

Status

201

Headers

ETag: W/"4da2c03e509cffe050b118ef3f28dda9"

Body

{
  "users": {
    "id": "164487",
    "name": "Bojack Horseman",
    "email": "[email protected]",
    "details": "Lead Actor",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "399242",
    "created_at": 1687196892,
    "updated_at": 1687196892,
    "cached_at": "1687196892.138403200"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1680716892,
      "desktop_presences": 1687196892,
      "favorites": 1686332892,
      "fences": 1682876892,
      "groups": 1687196892,
      "networks": 1679334492,
      "roles": 1687196892,
      "settings": 1687196892
    }
  }
}

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.

Endpoint

POST /api/v4/users/my/favorites

Parameters

Name Description
favorites required (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', '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'

Request

Route

POST /api/v4/users/my/favorites

Headers

Content-Type: application/json
Authorization: Bearer S68EqlFDzoKM4nkdwmZEF1UxjyM5qF5Gvv1wyhysjbo

Body

{
  "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 S68EqlFDzoKM4nkdwmZEF1UxjyM5qF5Gvv1wyhysjbo"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly updated user attributes

Status

200

Headers

ETag: W/"a10f4ef59d53927acca044c3a47aeb29"

Body

{
  "users": {
    "id": "164482",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Laborum possimus id.",
    "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": "399232",
    "created_at": 1687196891,
    "updated_at": 1687196891,
    "cached_at": "1687196891.937593000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1683308891,
      "desktop_presences": 1685728091,
      "favorites": 1686332891,
      "fences": 1681840091,
      "groups": 1679334491,
      "networks": 1681408091,
      "roles": 1687196891,
      "settings": 1687196891
    }
  }
}

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.

Endpoint

DELETE /api/v4/users/:id

Request

Route

DELETE /api/v4/users/164494

Headers

Content-Type: application/json
Authorization: Bearer 6_WvmeRi5vhQsDLEyR8BRhQWKIcsEwxIQm_PCAHn1Ag

cURL

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

Response

Simulated Response

Status

204

Favorite a status for the current user

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

Endpoint

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

Parameters

Name Description
status[status] required (string) must be 'in' or 'out'
status[comment] (string) up to 50 character description of the status update

Request

Route

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

Headers

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

Body

{
  "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 3yfyCh44hPyh46QKPU3oXiO_5JWKK92MlhO14sIDtd4"

Response

Simulated Response

Status

204

Hide a status for the current user

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

Endpoint

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

Parameters

Name Description
status[status] required (string) must be 'in' or 'out'
status[comment] (string) up to 50 character description of the status update

Request

Route

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

Headers

Content-Type: application/json
Authorization: Bearer 5907lZViHiLqqkmO8q3rc2H0omv_Iq9H8d2vldY3GF0

Body

{
  "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 5907lZViHiLqqkmO8q3rc2H0omv_Iq9H8d2vldY3GF0"

Response

Simulated Response

Status

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.

Endpoint

GET /api/v4/users?archived=true

Request

Route

GET /api/v4/users?archived=true

Headers

Content-Type: application/json
Authorization: Bearer dyidJZhPhOd9V7F-f_WJcm6iTzpXFj8BIt2iRsKiKXY

Query Parameters

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 dyidJZhPhOd9V7F-f_WJcm6iTzpXFj8BIt2iRsKiKXY"

Response

Simulated Response

Status

200

Headers

ETag: W/"c2cdd6ee3ce734bc911fc444e858d900"
Last-Modified: Mon, 19 Jun 2023 17:48:07 GMT

Body

{
  "users": [
    {
      "id": "164404",
      "name": "Juan Daniel",
      "email": null,
      "details": "Dolore totam velit.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": null,
      "created_at": 1687196887,
      "updated_at": 1687196887,
      "cached_at": "1687196887.950960200"
    }
  ],
  "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": {
      "beacons": 1685728087,
      "desktop_presences": 1680284887,
      "favorites": 1679852887,
      "fences": 1681148887,
      "groups": 1686937687,
      "networks": 1678816087,
      "roles": 1687196887,
      "settings": 1687196887
    },
    "trusted_cached_at": "1687196872.988519000"
  }
}

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.

Endpoint

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

Parameters

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

Request

Route

GET /api/v4/users/164501/futures

Headers

Content-Type: application/json
Authorization: Bearer 2GcyyO39fgJj-Hq9fIS-i1_mkzm0dUJeDvGX096IG7w

cURL

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

Response

Simulated Response

Response Fields

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

Status

200

Headers

ETag: W/"c5f669dca79ee4be4d8b940b2bdea508"
Last-Modified: Mon, 19 Jun 2023 17:48:12 GMT

Body

{
  "futures": [
    {
      "id": "4028",
      "status": "out",
      "comment": "Offsite Meeting",
      "apply_at": 1687762800,
      "user_id": "164501",
      "changed_by_user_id": null
    },
    {
      "id": "4029",
      "status": "out",
      "comment": "Gone Fishing",
      "apply_at": 1693220400,
      "user_id": "164501",
      "changed_by_user_id": "164502"
    }
  ],
  "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/164501/futures?user_id=164501",
      "last_href": "http://example.org/api/v4/users/164501/futures?user_id=164501",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1679593692,
      "desktop_presences": 1679766492,
      "favorites": 1678816092,
      "fences": 1682617692,
      "groups": 1680025692,
      "networks": 1685555292,
      "roles": 1687196892,
      "settings": 1687196892
    }
  }
}

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.

Endpoint

GET /api/v4/users/my/futures

Parameters

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

Request

Route

GET /api/v4/users/my/futures

Headers

Content-Type: application/json
Authorization: Bearer 0ObXh2EAxfgkVi_Sdg_emFFtwCyIvgQnC86RcBH2Ysk

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 0ObXh2EAxfgkVi_Sdg_emFFtwCyIvgQnC86RcBH2Ysk"

Response

Simulated Response

Response Fields

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

Status

200

Headers

ETag: W/"a5a020c6997a10e48c3b78b9bc65aac9"
Last-Modified: Mon, 19 Jun 2023 17:48:11 GMT

Body

{
  "futures": [
    {
      "id": "4025",
      "status": "out",
      "comment": "Offsite Meeting",
      "apply_at": 1687762800,
      "user_id": "164476",
      "changed_by_user_id": null
    },
    {
      "id": "4026",
      "status": "out",
      "comment": "Gone Fishing",
      "apply_at": 1693220400,
      "user_id": "164476",
      "changed_by_user_id": "164477"
    }
  ],
  "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=164476",
      "last_href": "http://example.org/api/v4/users/my/futures?user_id=164476",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1684172891,
      "desktop_presences": 1680457691,
      "favorites": 1681667291,
      "fences": 1685296091,
      "groups": 1680284891,
      "networks": 1681148891,
      "roles": 1687196891,
      "settings": 1687196891
    }
  }
}

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.

Endpoint

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

Parameters

Name Description
created_at required (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

Request

Route

GET /api/v4/users/164473/statuses?created_at=1686546000..1686805199

Headers

Content-Type: application/json
Authorization: Bearer bDvpLV7E6GGVglVl-IqVBkTvIJi-VxnSBel9icpthJc

Query Parameters

created_at=1686546000..1686805199

cURL

curl -g "https://www.simpleinout.com/api/v4/users/164473/statuses?created_at=1686546000..1686805199" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer bDvpLV7E6GGVglVl-IqVBkTvIJi-VxnSBel9icpthJc"

Response

Simulated Response

Response Fields

Name Description
statuses (array) an array of matching statuses

Status

200

Headers

ETag: W/"906cfa9897ab227c60861a90046718b9"
Last-Modified: Tue, 13 Jun 2023 14:00:00 GMT

Body

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "164473",
      "changed_by_user_id": null,
      "created_at": 1686553200
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "164473",
      "changed_by_user_id": null,
      "created_at": 1686567600
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "164473",
      "changed_by_user_id": null,
      "created_at": 1686571200
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "164473",
      "changed_by_user_id": null,
      "created_at": 1686589200
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "164473",
      "changed_by_user_id": null,
      "created_at": 1686639600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "164473",
      "changed_by_user_id": null,
      "created_at": 1686661200
    },
    {
      "status": "out",
      "comment": "Vacation",
      "automatic": false,
      "user_id": "164473",
      "changed_by_user_id": "164474",
      "created_at": 1686664800
    }
  ],
  "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/164473/statuses?created_at=1686546000..1686805199&user_id=164473",
      "last_href": "http://example.org/api/v4/users/164473/statuses?created_at=1686546000..1686805199&user_id=164473",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1681408091,
      "desktop_presences": 1686678491,
      "favorites": 1680889691,
      "fences": 1679420891,
      "groups": 1685382491,
      "networks": 1686851291,
      "roles": 1687196891,
      "settings": 1687196891
    }
  }
}

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.

Endpoint

GET /api/v4/users/my/statuses

Parameters

Name Description
created_at required (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

Request

Route

GET /api/v4/users/my/statuses?created_at=1686546000..1686805199

Headers

Content-Type: application/json
Authorization: Bearer X1N-B99AZZWGn00CUsGgCymk82U5lSl8ZIphzG0-GwY

Query Parameters

created_at=1686546000..1686805199

cURL

curl -g "https://www.simpleinout.com/api/v4/users/my/statuses?created_at=1686546000..1686805199" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer X1N-B99AZZWGn00CUsGgCymk82U5lSl8ZIphzG0-GwY"

Response

Simulated Response

Response Fields

Name Description
statuses (array) an array of matching statuses

Status

200

Headers

ETag: W/"bcc00ced6a53f70b4243c890a556c81a"
Last-Modified: Tue, 13 Jun 2023 14:00:00 GMT

Body

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "164489",
      "changed_by_user_id": null,
      "created_at": 1686553200
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "164489",
      "changed_by_user_id": null,
      "created_at": 1686567600
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "164489",
      "changed_by_user_id": null,
      "created_at": 1686571200
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "164489",
      "changed_by_user_id": null,
      "created_at": 1686589200
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "164489",
      "changed_by_user_id": null,
      "created_at": 1686639600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "164489",
      "changed_by_user_id": null,
      "created_at": 1686661200
    },
    {
      "status": "out",
      "comment": "Vacation",
      "automatic": false,
      "user_id": "164489",
      "changed_by_user_id": "164490",
      "created_at": 1686664800
    }
  ],
  "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=1686546000..1686805199&user_id=164489",
      "last_href": "http://example.org/api/v4/users/my/statuses?created_at=1686546000..1686805199&user_id=164489",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1685728092,
      "desktop_presences": 1680544092,
      "favorites": 1686592092,
      "fences": 1682012892,
      "groups": 1686592092,
      "networks": 1680112092,
      "roles": 1687196892,
      "settings": 1687196892
    }
  }
}

List all users

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

Endpoint

GET /api/v4/users

Parameters

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', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

GET /api/v4/users

Headers

Content-Type: application/json
Authorization: Bearer abciFZwTOBhkhrdD01IqPCe1iVVcQXsAWD36ZbwtbO4

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 abciFZwTOBhkhrdD01IqPCe1iVVcQXsAWD36ZbwtbO4"

Response

Simulated Response

Response Fields

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

Status

200

Headers

ETag: W/"414eb3ddac3300004b3f8dcc9e8e556d"
Last-Modified: Mon, 19 Jun 2023 17:48:11 GMT

Body

{
  "users": [
    {
      "id": "164459",
      "name": "Malory Archer",
      "email": "[email protected]",
      "details": "Impedit voluptas sequi.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "399186",
      "created_at": 1687196891,
      "updated_at": 1687196891,
      "cached_at": "1687196891.014875000"
    },
    {
      "id": "164460",
      "name": "Sterling Archer",
      "email": "[email protected]",
      "details": "Ipsum fugit vel.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "399188",
      "created_at": 1687196891,
      "updated_at": 1687196891,
      "cached_at": "1687196891.021325000"
    },
    {
      "id": "164461",
      "name": "Lana Kane",
      "email": "[email protected]",
      "details": "Itaque omnis cupiditate.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "399188",
      "created_at": 1687196891,
      "updated_at": 1687196891,
      "cached_at": "1687196891.029908000"
    },
    {
      "id": "164462",
      "name": "Ray Gillette",
      "email": "[email protected]",
      "details": "Ab aut quo.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "399188",
      "created_at": 1687196891,
      "updated_at": 1687196891,
      "cached_at": "1687196891.036826800"
    }
  ],
  "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": {
      "beacons": 1682012890,
      "desktop_presences": 1684864090,
      "favorites": 1682272090,
      "fences": 1686073690,
      "groups": 1686505690,
      "networks": 1684604890,
      "roles": 1687196891,
      "settings": 1687196891
    },
    "trusted_cached_at": "1687196876.070912000"
  }
}

Retrieve a user

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

Endpoint

GET /api/v4/users/:id

Parameters

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', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

GET /api/v4/users/164500

Headers

Content-Type: application/json
Authorization: Bearer 0FzDepgiZB4c-igEshvzjGw49LmmpXM0CzFT70RAjE0

cURL

curl -g "https://www.simpleinout.com/api/v4/users/164500" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 0FzDepgiZB4c-igEshvzjGw49LmmpXM0CzFT70RAjE0"

Response

Simulated Response

Response Fields

Name Description
users (object) a user object

Status

200

Headers

ETag: W/"6e70dd144e62d107b5a5ea03df9c5d3f"
Last-Modified: Mon, 19 Jun 2023 17:48:12 GMT

Body

{
  "users": {
    "id": "164500",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Repellendus sapiente perspiciatis.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "399268",
    "created_at": 1687196892,
    "updated_at": 1687196892,
    "cached_at": "1687196892.663267100"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1686678492,
      "desktop_presences": 1679680092,
      "favorites": 1684604892,
      "fences": 1684345692,
      "groups": 1684518492,
      "networks": 1686419292,
      "roles": 1687196892,
      "settings": 1687196892
    }
  }
}

Retrieve the current user

Retrieve the current user who is authorized.

Endpoint

GET /api/v4/users/my

Parameters

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', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

GET /api/v4/users/my

Headers

Content-Type: application/json
Authorization: Bearer orr1y1lClJE45ue-3iTQxEG5BBXvUhHgM-3JBsfNMYY

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 orr1y1lClJE45ue-3iTQxEG5BBXvUhHgM-3JBsfNMYY"

Response

Simulated Response

Response Fields

Name Description
users (object) a user object

Status

200

Headers

ETag: W/"bbb7d20f256c2d111e82201f492df05e"
Last-Modified: Mon, 19 Jun 2023 17:48:12 GMT

Body

{
  "users": {
    "id": "164485",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Numquam hic rerum.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "399240",
    "created_at": 1687196892,
    "updated_at": 1687196892,
    "cached_at": "1687196892.034989000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1685123292,
      "desktop_presences": 1682358492,
      "favorites": 1680544092,
      "fences": 1680889692,
      "groups": 1680457692,
      "networks": 1686937692,
      "roles": 1687196892,
      "settings": 1687196892
    }
  }
}

Unarchive a user

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

Endpoint

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

Parameters

Name Description
user[email] required (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] required (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: 'memberships', 'memberships.group', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

POST /api/v4/users/164506/unarchive

Headers

Content-Type: application/json
Authorization: Bearer UoUpDeQ8m7gAaL1ZhM5vvZJ1ZT8k-ZxOa8Jke9403rY

Body

{
  "user": {
    "email": "[email protected]",
    "role_id": "399278"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/164506/unarchive" -d '{"user":{"email":"[email protected]","role_id":"399278"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer UoUpDeQ8m7gAaL1ZhM5vvZJ1ZT8k-ZxOa8Jke9403rY"

Response

Simulated Response

Status

200

Headers

ETag: W/"99e37ed8df72f565eeae90d73ff71c23"

Body

{
  "users": {
    "id": "164506",
    "name": "Al Sporer III",
    "email": "[email protected]",
    "details": "Totam pariatur sit.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "399278",
    "created_at": 1687196892,
    "updated_at": 1687196892,
    "cached_at": "1687196892.922612000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1683568092,
      "desktop_presences": 1686851292,
      "favorites": 1678729692,
      "fences": 1683049692,
      "groups": 1685468892,
      "networks": 1684345692,
      "roles": 1687196892,
      "settings": 1687196892
    }
  }
}

Unfavorite a status for the current user

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

Endpoint

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

Parameters

Name Description
status[status] required (string) must be 'in' or 'out'
status[comment] (string) up to 50 character description of the status update

Request

Route

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

Headers

Content-Type: application/json
Authorization: Bearer INQWT3KtITqaMzZ-901wJWVjiXzT6rH3OfJ6d396EmY

Body

{
  "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 INQWT3KtITqaMzZ-901wJWVjiXzT6rH3OfJ6d396EmY"

Response

Simulated Response

Status

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.

Endpoint

PATCH /api/v4/users/:id

Parameters

Name Description
user[email] (string) new user's email address
user[name] (string) new user's full name
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', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

PATCH /api/v4/users/164496

Headers

Content-Type: application/json
Authorization: Bearer KsDg_YxoK2n87JSWdI4KFHig2Cp7FSi_CQcO6BgClUo

Body

{
  "user": {
    "phones_attributes": [
      {
        "number": "1-466-480-4287"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 15272
      }
    ]
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/164496" -d '{"user":{"phones_attributes":[{"number":"1-466-480-4287"}],"memberships_attributes":[{"group_id":15272}]}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer KsDg_YxoK2n87JSWdI4KFHig2Cp7FSi_CQcO6BgClUo"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly updated user attributes

Status

200

Headers

ETag: W/"85760d03e06539d13678193e1fbf13d7"

Body

{
  "users": {
    "id": "164496",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Voluptatem quidem tempore.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "399260",
    "created_at": 1687196892,
    "updated_at": 1687196892,
    "cached_at": "1687196892.551300000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1680457692,
      "desktop_presences": 1686246492,
      "favorites": 1683654492,
      "fences": 1685036892,
      "groups": 1687196892,
      "networks": 1680976092,
      "roles": 1687196892,
      "settings": 1687196892
    }
  }
}

Update the current user

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

Endpoint

PATCH /api/v4/users/my

Parameters

Name Description
user[email] (string) new user's email address
user[name] (string) new user's full name
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', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

PATCH /api/v4/users/my

Headers

Content-Type: application/json
Authorization: Bearer Btp4kNxQE9F0IhnltGBn9pkOVnN4eZKQpamqYAi82oM

Body

{
  "user": {
    "phones_attributes": [
      {
        "number": "1-501-943-3420 x5108"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 15268
      }
    ]
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my" -d '{"user":{"phones_attributes":[{"number":"1-501-943-3420 x5108"}],"memberships_attributes":[{"group_id":15268}]}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Btp4kNxQE9F0IhnltGBn9pkOVnN4eZKQpamqYAi82oM"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly updated user attributes

Status

200

Headers

ETag: W/"bf9b594a70ddc4059edd95f4c1cf7daf"

Body

{
  "users": {
    "id": "164470",
    "name": "Mae Considine",
    "email": "[email protected]",
    "details": "Illum at impedit.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "399206",
    "created_at": 1687196891,
    "updated_at": 1687196891,
    "cached_at": "1687196891.451676800"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1679593691,
      "desktop_presences": 1678816091,
      "favorites": 1679507291,
      "fences": 1685123291,
      "groups": 1687196891,
      "networks": 1684518491,
      "roles": 1687196891,
      "settings": 1687196891
    }
  }
}