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

Pagination

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

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

Last Update At

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

If Modified Since and If None Match

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

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

Range Searching

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

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

Sorting

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

Errors

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

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

An example of an error payload:

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

Error Codes

1002: Company is Disabled

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


2002: Status Failure

The status update could not be completed.


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,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": false,
      "manage_others_status": false,
      "manage_own_archives": false,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1506268448,
      "updated_at": 1506269853
    }
  }
}

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

Web Hooks

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

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

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

{
  "username": "Bojack Horseman",
  "email": "[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"
    }
  }
}



Announcements

Create a announcement

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

Endpoint

POST /api/v4/announcements

Parameters

Name Description
announcement[message] required (string) the name of the announcement
announcement[push] (boolean) whether this announcement should trigger a push notification to users, defaults to false
announcement[group_id] (string) restrict the announcement to a specific group, defaults to no restrictions
announcement[expires_at] (integer) the epoch time when the announcement should expire, defaults to no expiration

Request

Route

POST /api/v4/announcements

Headers

Content-Type: application/json
Authorization: Bearer QpRqhGiDpttRsXr2r5OPwXPjAaq5-pqN5DMSf8NZE-w

Body

{
  "announcement": {
    "message": "Evaculate the building",
    "push": false,
    "group_id": "12",
    "expires_at": 1733684139
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/announcements" -d '{"announcement":{"message":"Evaculate the building","push":false,"group_id":"12","expires_at":1733684139}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer QpRqhGiDpttRsXr2r5OPwXPjAaq5-pqN5DMSf8NZE-w"

Response

Simulated Response

Response Fields

Name Description
announcements (object) the newly created announcement attributes

Status

201

Headers

ETag: W/"c4c20e51c3b6d4abc302587d703566bd"

Body

{
  "announcements": {
    "id": "1",
    "group_id": "12",
    "user_id": "102",
    "message": "Evaculate the building",
    "push": false,
    "expires_at": null,
    "created_at": 1733597739,
    "updated_at": 1733597739
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1733597739,
      "beacons": 1731092139,
      "desktop_presences": 1728150939,
      "favorites": 1725645339,
      "fences": 1730224539,
      "groups": 1733597739,
      "networks": 1728496539,
      "roles": 1733597739,
      "settings": 1733597739
    },
    "emergency": null
  }
}

Delete an announcement

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

Endpoint

DELETE /api/v4/announcements/:id

Request

Route

DELETE /api/v4/announcements/4

Headers

Content-Type: application/json
Authorization: Bearer S6kjDtj0uhBuCYWKCEb4MBfTs3v6oPJLA3bo9bPeRAg

cURL

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

Response

Simulated Response

Status

204

List all announcements

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

Endpoint

GET /api/v4/announcements

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/announcements

Headers

Content-Type: application/json
Authorization: Bearer Nd5eNIu4Q7Wsa9xQMTmixhwhw69mlO4MqwDTmfGYfkI

cURL

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

Response

Simulated Response

Response Fields

Name Description
announcements (array) an array of announcements

Status

200

Headers

ETag: W/"763b392092c382c3a917d84bd9bc7870"
Last-Modified: Sat, 07 Dec 2024 18:55:39 GMT

Body

{
  "announcements": [
    {
      "id": "2",
      "group_id": null,
      "user_id": "104",
      "message": "Enim aspernatur qui rerum.",
      "push": false,
      "expires_at": 1733684139,
      "created_at": 1733597739,
      "updated_at": 1733597739
    },
    {
      "id": "3",
      "group_id": null,
      "user_id": "104",
      "message": "Animi et eos ut.",
      "push": false,
      "expires_at": 1733684139,
      "created_at": 1733597739,
      "updated_at": 1733597739
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/announcements",
      "last_href": "http://example.org/api/v4/announcements",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1733597739,
      "beacons": 1725904539,
      "desktop_presences": 1726250139,
      "favorites": 1731178539,
      "fences": 1729965339,
      "groups": 1729792539,
      "networks": 1731696939,
      "roles": 1733597739,
      "settings": 1733597739
    },
    "emergency": null
  }
}

Authentication

Authorization

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

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": "DkTJkqzorUKT1GTO5RaThgwQ1PS9PVUIGi2slp6LhCs",
  "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":"DkTJkqzorUKT1GTO5RaThgwQ1PS9PVUIGi2slp6LhCs","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/"f4083d9ad9b2dcd9a849366ebbe55bd6"

Body

{
  "access_token": "fR0lthdFCPuQqynn9FeTYfIM3FWCbbdtS8cDHP4T4Dg",
  "token_type": "Bearer",
  "expires_in": 7200,
  "refresh_token": "k-ytD5cbXamA_zjrlwFLE8X6oM3Nsbnq_3lp7MJuvMM",
  "scope": "write",
  "created_at": 1733597739,
  "user": {
    "id": "106",
    "company_id": "67",
    "roles": {
      "id": "269",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1733597739,
      "updated_at": 1733597739
    }
  }
}

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": "9dnajg8nyi3kyg5lvdicyavvam08x8k9"
}

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":"9dnajg8nyi3kyg5lvdicyavvam08x8k9"}' -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/"ffcbaa3962915082f17692e641e74a0d"

Body

{
  "access_token": "M9tefxWn-bJy8rrfJpUOtO8-2DdDMQ4VsOGBYAn3sNE",
  "token_type": "Bearer",
  "expires_in": 604800,
  "refresh_token": "m2K9FyxqBZp8CNZ-aMDA1Tea_Rrj4LWpXb_PFOCr_24",
  "scope": "write",
  "created_at": 1733597739,
  "user": {
    "id": "113",
    "company_id": "72",
    "roles": {
      "id": "289",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1733597739,
      "updated_at": 1733597739
    }
  }
}

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": "1510071025714",
  "client_secret": "7901837422016",
  "token": "QI6Hu8C4oqF-c1-i_TNL-QX-fkocdqAFx8JMIUF9XOQ"
}

cURL

curl "https://www.simpleinout.com/oauth/revoke" -d '{"client_id":"1510071025714","client_secret":"7901837422016","token":"QI6Hu8C4oqF-c1-i_TNL-QX-fkocdqAFx8JMIUF9XOQ"}' -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 x1WaKk4FzNErtDXSFq5RI3ptOjeAaIbWCvKGT8J7ZHg

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

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/"0eca8fc9f5df3bdc60ea9c121b2537b4"

Body

{
  "resource_owner_id": 108,
  "scope": [
    "read"
  ],
  "expires_in": 604800,
  "application": {
    "uid": "3539144650972"
  },
  "created_at": 1733597739
}

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

Request

Route

POST /api/v4/beacons

Headers

Content-Type: application/json
Authorization: Bearer 5okKuwMRU_vEA2sPEnpstLgqNGkUxSC4yR-lOcBrz-E

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 5okKuwMRU_vEA2sPEnpstLgqNGkUxSC4yR-lOcBrz-E"

Response

Simulated Response

Response Fields

Name Description
beacons (object) the newly created beacon attributes

Status

201

Headers

ETag: W/"29f82c5c5725bb9fec0c277be3c58d6d"

Body

{
  "beacons": {
    "id": "5",
    "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": 1733597737,
    "updated_at": 1733597737
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1732647337,
      "beacons": 1733597737,
      "desktop_presences": 1726595737,
      "favorites": 1727632537,
      "fences": 1729101337,
      "groups": 1732215337,
      "networks": 1733165737,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

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/4

Headers

Content-Type: application/json
Authorization: Bearer XOB4SKQk0JAy11zSQkFnkRXAWgF6QAhKqjq0H_WbwN0

cURL

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

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 tM7k7_tQ_YBS1wgDvPBYnf-nKY31Lj1-fEpsy8RauWk

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 tM7k7_tQ_YBS1wgDvPBYnf-nKY31Lj1-fEpsy8RauWk"

Response

Simulated Response

Response Fields

Name Description
beacons (array) an array of beacons

Status

200

Headers

ETag: W/"9034c8cd4aa6f10687f936e14584b274"
Last-Modified: Sat, 07 Dec 2024 18:55:37 GMT

Body

{
  "beacons": [
    {
      "id": "2",
      "name": "2 - Chadwickstad",
      "uuid": "E0FA82AB-69C1-434E-BC0D-8A9C0EE9F35D",
      "comment_on_entry": "In at 2 - Chadwickstad",
      "comment_on_exit": "Left 2 - Chadwickstad",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1733597737,
      "updated_at": 1733597737
    },
    {
      "id": "3",
      "name": "3 - Patricktown",
      "uuid": "7E6FCCC4-F252-41C3-890D-43BFB43AE072",
      "comment_on_entry": "In at 3 - Patricktown",
      "comment_on_exit": "Left 3 - Patricktown",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1733597737,
      "updated_at": 1733597737
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/beacons",
      "last_href": "http://example.org/api/v4/beacons",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1725818137,
      "beacons": 1733597737,
      "desktop_presences": 1725126937,
      "favorites": 1729965337,
      "fences": 1733079337,
      "groups": 1729446937,
      "networks": 1728410137,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

Update a beacon

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

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

Request

Route

PATCH /api/v4/beacons/6

Headers

Content-Type: application/json
Authorization: Bearer xy8vUsMHG0Sf1JxkSCaT0f5jV6exHfPM0GVBSVfEYZw

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
beacons (object) the newly updated beacon attributes

Status

200

Headers

ETag: W/"6e68954db04e3daf046c6839ce6f5a4a"

Body

{
  "beacons": {
    "id": "6",
    "name": "My Renamed Office",
    "uuid": "931DEE81-76F5-4B2F-8EDA-0D6299C90CDC",
    "comment_on_entry": "In at 5 - East Jim",
    "comment_on_exit": "Left 5 - East Jim",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1733597737,
    "updated_at": 1733597737
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1730310937,
      "beacons": 1733597737,
      "desktop_presences": 1725386137,
      "favorites": 1726854937,
      "fences": 1725213337,
      "groups": 1725818137,
      "networks": 1729533337,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

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 rHrF06_baie2escsMWm2VZRaG94DxSy5khKEbJ_QVVY

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

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/"17c8a2f68127bae458ae7b520fc77f62"
Last-Modified: Sat, 07 Dec 2024 18:55:36 GMT

Body

{
  "companies": {
    "id": "4",
    "available_statuses": [
      "in",
      "out"
    ],
    "name": "Schoen, Gutkowski and Medhurst",
    "scheduled_statuses": true,
    "default_role_id": "15",
    "logo_url": null,
    "created_at": 1733597736
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1725818136,
      "beacons": 1730746536,
      "desktop_presences": 1725126936,
      "favorites": 1730138136,
      "fences": 1728928536,
      "groups": 1730570136,
      "networks": 1727027736,
      "roles": 1733597736,
      "settings": 1733597736
    },
    "emergency": null
  }
}

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/1

Headers

Content-Type: application/json
Authorization: Bearer 5IWFH9esq1j6-kxaywsXh-wPBNJMHrbFdZl4iyYA2_4

cURL

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

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: 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
comment (string) the comment, case sensitive, included with the status change
apply_at (string) a date range string for the time this status will be added
user_id (string) the ID of a particular user
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'apply_at', 'status', 'comment'"
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'

Request

Route

GET /api/v4/futures

Headers

Content-Type: application/json
Authorization: Bearer LYccINuVnzTijLPVseWYg5NTyBE72RKzDbqdQx1vlVA

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

Response

Simulated Response

Response Fields

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

Status

200

Headers

ETag: W/"337767976b7f5ba3f6d3f25e387d1792"
Last-Modified: Sat, 07 Dec 2024 18:55:36 GMT

Body

{
  "futures": [
    {
      "id": "2",
      "status": "out",
      "comment": "On Vacation, back Monday",
      "apply_at": 1736272800,
      "user_id": "11",
      "changed_by_user_id": null
    },
    {
      "id": "3",
      "status": "out",
      "comment": "At the conference this week",
      "apply_at": 1749315600,
      "user_id": "11",
      "changed_by_user_id": null
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/futures",
      "last_href": "http://example.org/api/v4/futures",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1726768536,
      "beacons": 1730660136,
      "desktop_presences": 1727632536,
      "favorites": 1730397336,
      "fences": 1729101336,
      "groups": 1729101336,
      "networks": 1730397336,
      "roles": 1733597736,
      "settings": 1733597736
    },
    "emergency": null
  }
}

Geofences

Create a fence

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

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

Request

Route

POST /api/v4/fences

Headers

Content-Type: application/json
Authorization: Bearer uWnVStXsuKlSfuj9vbffJUWFHB3KCqu1RsakjcCUfR0

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

Response

Simulated Response

Response Fields

Name Description
fences (object) the newly created fence attributes

Status

201

Headers

ETag: W/"d84d9bef26c3fefa679e7009207a3f39"

Body

{
  "fences": {
    "id": "3",
    "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": 1733597740,
    "updated_at": 1733597740
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1731869740,
      "beacons": 1725299740,
      "desktop_presences": 1728410140,
      "favorites": 1731524140,
      "fences": 1733597740,
      "groups": 1730660140,
      "networks": 1732215340,
      "roles": 1733597740,
      "settings": 1733597740
    },
    "emergency": null
  }
}

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/1

Headers

Content-Type: application/json
Authorization: Bearer Vqh8_yeQzdbWEN98VA3sIN2jyVLRk0w8rrX5dOKIXKY

cURL

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

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 Sc_L3zsdlMdjH1vePI3PJaGctT6r7qz8FBSxF0kh7bE

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

Response

Simulated Response

Response Fields

Name Description
fences (array) an array of fences

Status

200

Headers

ETag: W/"697024a10feaa2812fef97c7d97f2f7e"
Last-Modified: Sat, 07 Dec 2024 18:55:40 GMT

Body

{
  "fences": [
    {
      "id": "4",
      "name": "3 - West Nathanael",
      "latitude": "8.0312877048",
      "longitude": "-74.6982165315",
      "radius": 11682,
      "comment_on_entry": "In at 3 - West Nathanael",
      "comment_on_exit": "Left 3 - West Nathanael",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1733597740,
      "updated_at": 1733597740
    },
    {
      "id": "5",
      "name": "4 - South Bellaside",
      "latitude": "51.9058432673",
      "longitude": "-66.4485271022",
      "radius": 13704,
      "comment_on_entry": "In at 4 - South Bellaside",
      "comment_on_exit": "Left 4 - South Bellaside",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1733597740,
      "updated_at": 1733597740
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/fences",
      "last_href": "http://example.org/api/v4/fences",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1728669340,
      "beacons": 1727546140,
      "desktop_presences": 1725213340,
      "favorites": 1726250140,
      "fences": 1733597740,
      "groups": 1732474540,
      "networks": 1728237340,
      "roles": 1733597740,
      "settings": 1733597740
    },
    "emergency": null
  }
}

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

Request

Route

PATCH /api/v4/fences/2

Headers

Content-Type: application/json
Authorization: Bearer PPhtpjzPLQYL_6XsMRaARRadKw6uwWO7ocW0jcv5nd4

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
fences (object) the newly updated fence attributes

Status

200

Headers

ETag: W/"2a339740d399f77e58a88d796af0ba14"

Body

{
  "fences": {
    "id": "2",
    "name": "My Renamed Geofence",
    "latitude": "-54.9662538733",
    "longitude": "-106.4595585781",
    "radius": 355,
    "comment_on_entry": "In at 2 - Reenamouth",
    "comment_on_exit": "Left 2 - Reenamouth",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1733597740,
    "updated_at": 1733597740
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1731264940,
      "beacons": 1732820140,
      "desktop_presences": 1731783340,
      "favorites": 1728582940,
      "fences": 1733597740,
      "groups": 1727373340,
      "networks": 1728323740,
      "roles": 1733597740,
      "settings": 1733597740
    },
    "emergency": null
  }
}

Groups

Create a group

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

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 bo5nz_QviV6iOcyA7xe38BJpyt01xEoohp9FooTZLIk

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

Response

Simulated Response

Response Fields

Name Description
groups (object) the newly created group attributes

Status

201

Headers

ETag: W/"0b0f095dc15196507228a07f85017d44"

Body

{
  "groups": {
    "id": "3",
    "name": "New Department"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1729792537,
      "beacons": 1731437737,
      "desktop_presences": 1731264937,
      "favorites": 1730919337,
      "fences": 1729878937,
      "groups": 1733597737,
      "networks": 1732906537,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

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/5

Headers

Content-Type: application/json
Authorization: Bearer rgWMTQFHecE0SjZ7lk_L5GrVOJ2-BFmuywdMVO0EyhU

cURL

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

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 CcANDeQem4IK15wFKQdMiwDxIfzNh-eZrobWRAp5ipg

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 CcANDeQem4IK15wFKQdMiwDxIfzNh-eZrobWRAp5ipg"

Response

Simulated Response

Response Fields

Name Description
groups (array) an array of groups

Status

200

Headers

ETag: W/"b6af3bbe8d8d49b5548a3447e311d00a"
Last-Modified: Sat, 07 Dec 2024 18:55:37 GMT

Body

{
  "groups": [
    {
      "id": "1",
      "name": "Schmeler Group1"
    },
    {
      "id": "2",
      "name": "Thompson Inc2"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/groups",
      "last_href": "http://example.org/api/v4/groups",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1733165737,
      "beacons": 1732906537,
      "desktop_presences": 1730746537,
      "favorites": 1728582937,
      "fences": 1733597737,
      "groups": 1733597737,
      "networks": 1728582937,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

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/4

Headers

Content-Type: application/json
Authorization: Bearer q4e7JzoYtKf_pp1VwcJC5lKorBBJvxKkRSmQei98yJs

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
groups (object) the newly updated group attributes

Status

200

Headers

ETag: W/"936dc3a5eac0315f2f40e86b46df0df2"

Body

{
  "groups": {
    "id": "4",
    "name": "Renamed Department"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1732647337,
      "beacons": 1727978137,
      "desktop_presences": 1731869737,
      "favorites": 1727459737,
      "fences": 1730660137,
      "groups": 1733597737,
      "networks": 1725126937,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

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

Request

Route

POST /api/v4/networks

Headers

Content-Type: application/json
Authorization: Bearer 4eU1CZkRBptIKp4J-dm1nRLliLCiY3wy2QK7Heg7bDg

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 4eU1CZkRBptIKp4J-dm1nRLliLCiY3wy2QK7Heg7bDg"

Response

Simulated Response

Response Fields

Name Description
networks (object) the newly created network attributes

Status

201

Headers

ETag: W/"d0401530ea63a1a1235de5ba2da265bd"

Body

{
  "networks": {
    "id": "3",
    "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": 1733597737,
    "updated_at": 1733597737
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1730224537,
      "beacons": 1726509337,
      "desktop_presences": 1725213337,
      "favorites": 1732042537,
      "fences": 1728237337,
      "groups": 1727632537,
      "networks": 1733597737,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

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/1

Headers

Content-Type: application/json
Authorization: Bearer 7xypiMydmt4nF6xnOzUaUW9Dp4Foi_HdwJ-d5xAJKt4

cURL

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

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 lSCgsIpT65oibS-ly-GCGlfPGHEhpGZVPtzLX4v1FGc

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 lSCgsIpT65oibS-ly-GCGlfPGHEhpGZVPtzLX4v1FGc"

Response

Simulated Response

Response Fields

Name Description
networks (array) an array of networks

Status

200

Headers

ETag: W/"8dab5e1346fba37640ff2340ca783baa"
Last-Modified: Sat, 07 Dec 2024 18:55:37 GMT

Body

{
  "networks": [
    {
      "id": "4",
      "name": "3 - Lake Petershire",
      "ssid": "ripr38ltifcsv2fx5kson3gryztp5wfs",
      "comment_on_entry": "In at 3 - Lake Petershire",
      "comment_on_exit": "Left 3 - Lake Petershire",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1733597737,
      "updated_at": 1733597737
    },
    {
      "id": "5",
      "name": "4 - North Brooks",
      "ssid": "71wlfcly6qytr34cchla0xaceij9g4yt",
      "comment_on_entry": "In at 4 - North Brooks",
      "comment_on_exit": "Left 4 - North Brooks",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1733597737,
      "updated_at": 1733597737
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/networks",
      "last_href": "http://example.org/api/v4/networks",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1730570137,
      "beacons": 1725213337,
      "desktop_presences": 1728582937,
      "favorites": 1727632537,
      "fences": 1730483737,
      "groups": 1725731737,
      "networks": 1733597737,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

Update a network

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

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

Request

Route

PATCH /api/v4/networks/2

Headers

Content-Type: application/json
Authorization: Bearer 2mUHPkHbUbD-YOOXprLhhro5Ap-gmRkkB6RqouQyJw8

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
networks (object) the newly updated network attributes

Status

200

Headers

ETag: W/"fb265987d62188bf4e057334036c56ae"

Body

{
  "networks": {
    "id": "2",
    "name": "My Renamed Office",
    "ssid": "lnt71ml7or1x95mqczmvfcwtaosgdf2d",
    "comment_on_entry": "In at 2 - Port Genefort",
    "comment_on_exit": "Left 2 - Port Genefort",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1733597736,
    "updated_at": 1733597736
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1725213336,
      "beacons": 1729533336,
      "desktop_presences": 1732215336,
      "favorites": 1725990936,
      "fences": 1731610536,
      "groups": 1733338536,
      "networks": 1733597737,
      "roles": 1733597736,
      "settings": 1733597736
    },
    "emergency": null
  }
}

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 Zy_36sjJimg1FKH_FW0sNrQJHK3ssoSDs15ipWWH6D0

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

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 all other users and their current status.
role[manage_groups_and_memberships] (boolean) these users can manage groups and which users are assigned to each group.
role[manage_others_archives] (boolean) these users can change the past statuses of all others by adding and deleting status updates.
role[manage_others_futures] (boolean) these users can schedule future status updates for all other users.
role[manage_others_status] (boolean) these users can change the current status of all users.
role[manage_own_archives] (boolean) these users can change their own past statuses by adding and deleting status updates.
role[manage_own_futures] (boolean) these users can schedule future status updates for themselves.
role[manage_own_status] (boolean) these users can update their own status from any device or the website. If a user is not allowed to update their own status, they can only update their status from a common device running FrontDesk or TimeClock.
role[view_others_archives] (boolean) these users can view the past status updates made by all other users.
role[view_others_futures] (boolean) these users can view the scheduled status updates for all users.
role[view_others_reports] (boolean) these users can run reports on the status history of all other users.
role[view_user_board_updated_at] (boolean) these users can view the time that status updates were made on the board.
role[member_board] (boolean) these users can see other users within the same groups and their current status.
role[manage_member_archives] (boolean) these users can change the past statuses of users within the same groups by adding and deleting status updates.
role[manage_member_futures] (boolean) these users can schedule future status updates for users within the same groups.
role[manage_member_status] (boolean) these users can change the current status of users within the same groups.
role[view_member_archives] (boolean) these users can view the past status updates made by users within the same groups.
role[view_member_futures] (boolean) these users can view the scheduled status updates for users within the same groups.
role[view_member_reports] (boolean) these users can run reports on the status history of users within the same groups.

Request

Route

POST /api/v4/roles

Headers

Content-Type: application/json
Authorization: Bearer t3-j9r3-tl_HEScQjpyPFcZsiykMyqYE7bdr9fZekeE

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,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false
  }
}

cURL

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

Response

Simulated Response

Response Fields

Name Description
roles (object) the newly created role attributes

Status

201

Headers

ETag: W/"fdaaaca7e3e86ffa00757f9991342032"

Body

{
  "roles": {
    "id": "233",
    "name": "Billing Role",
    "billing": true,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_company_and_users": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": false,
    "view_others_futures": false,
    "view_others_reports": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false,
    "view_user_board_updated_at": false,
    "created_at": 1733597738,
    "updated_at": 1733597738
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1726682138,
      "beacons": 1728064538,
      "desktop_presences": 1725558938,
      "favorites": 1725040538,
      "fences": 1725904538,
      "groups": 1731092138,
      "networks": 1725213338,
      "roles": 1733597738,
      "settings": 1733597738
    },
    "emergency": null
  }
}

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/243

Headers

Content-Type: application/json
Authorization: Bearer NSqtUgSl4fbic8COzvd2roFrsuGvhrNKhdHMqTrj1y0

cURL

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

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 060P9Hrjr6ltwPgjMc058YUsABSNg6YHWwUF-UbjNNI

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 060P9Hrjr6ltwPgjMc058YUsABSNg6YHWwUF-UbjNNI"

Response

Simulated Response

Response Fields

Name Description
roles (array) an array of roles

Status

200

Headers

ETag: W/"5f80f32c0abe9e87e1454896aed411be"
Last-Modified: Sat, 07 Dec 2024 18:55:39 GMT

Body

{
  "roles": [
    {
      "id": "250",
      "name": "Manager",
      "billing": false,
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": false,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1733597739,
      "updated_at": 1733597739
    },
    {
      "id": "252",
      "name": "Limited User",
      "billing": false,
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": false,
      "manage_others_status": false,
      "manage_own_archives": false,
      "manage_own_futures": false,
      "manage_own_status": false,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1733597739,
      "updated_at": 1733597739
    },
    {
      "id": "249",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1733597739,
      "updated_at": 1733597739
    },
    {
      "id": "251",
      "name": "Regular User",
      "billing": false,
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": false,
      "manage_others_status": false,
      "manage_own_archives": false,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1733597739,
      "updated_at": 1733597739
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 4,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/roles",
      "last_href": "http://example.org/api/v4/roles",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1729446939,
      "beacons": 1731956139,
      "desktop_presences": 1726941339,
      "favorites": 1731610539,
      "fences": 1730746539,
      "groups": 1725126939,
      "networks": 1727459739,
      "roles": 1733597739,
      "settings": 1733597739
    },
    "emergency": null
  }
}

Retrieve a role

Retrieve an existing role.

Endpoint

GET /api/v4/roles/:id

Request

Route

GET /api/v4/roles/248

Headers

Content-Type: application/json
Authorization: Bearer DCokh2ak9wDhSil9wM70KvxzGsuP83aMhdEOAfnrpE8

cURL

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

Response

Simulated Response

Response Fields

Name Description
roles (object) the role attributes

Status

200

Headers

ETag: W/"59e938f3e5cce102cc3f5f940fcbb1ec"
Last-Modified: Sat, 07 Dec 2024 18:55:39 GMT

Body

{
  "roles": {
    "id": "248",
    "name": "Pouros, Harvey and Abshire",
    "billing": false,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_company_and_users": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": false,
    "view_others_futures": false,
    "view_others_reports": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false,
    "view_user_board_updated_at": false,
    "created_at": 1733597739,
    "updated_at": 1733597739
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1728064539,
      "beacons": 1730483739,
      "desktop_presences": 1728410139,
      "favorites": 1725904539,
      "fences": 1729878939,
      "groups": 1725818139,
      "networks": 1732820139,
      "roles": 1733597739,
      "settings": 1733597739
    },
    "emergency": null,
    "update_available": false
  }
}

Update a role

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

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 all other users and their current status.
role[manage_groups_and_memberships] (boolean) these users can manage groups and which users are assigned to each group.
role[manage_others_archives] (boolean) these users can change the past statuses of all others by adding and deleting status updates.
role[manage_others_futures] (boolean) these users can schedule future status updates for all other users.
role[manage_others_status] (boolean) these users can change the current status of all users.
role[manage_own_archives] (boolean) these users can change their own past statuses by adding and deleting status updates.
role[manage_own_futures] (boolean) these users can schedule future status updates for themselves.
role[manage_own_status] (boolean) these users can update their own status from any device or the website. If a user is not allowed to update their own status, they can only update their status from a common device running FrontDesk or TimeClock.
role[view_others_archives] (boolean) these users can view the past status updates made by all other users.
role[view_others_futures] (boolean) these users can view the scheduled status updates for all users.
role[view_others_reports] (boolean) these users can run reports on the status history of all other users.
role[view_user_board_updated_at] (boolean) these users can view the time that status updates were made on the board.
role[member_board] (boolean) these users can see other users within the same groups and their current status.
role[manage_member_archives] (boolean) these users can change the past statuses of users within the same groups by adding and deleting status updates.
role[manage_member_futures] (boolean) these users can schedule future status updates for users within the same groups.
role[manage_member_status] (boolean) these users can change the current status of users within the same groups.
role[view_member_archives] (boolean) these users can view the past status updates made by users within the same groups.
role[view_member_futures] (boolean) these users can view the scheduled status updates for users within the same groups.
role[view_member_reports] (boolean) these users can run reports on the status history of users within the same groups.

Request

Route

PATCH /api/v4/roles/238

Headers

Content-Type: application/json
Authorization: Bearer OiCYyxNz3-ALtZJzwphyewIZtiBn3WUyojF4EgjuG_c

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/238" -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 OiCYyxNz3-ALtZJzwphyewIZtiBn3WUyojF4EgjuG_c"

Response

Simulated Response

Response Fields

Name Description
roles (object) the newly updated role attributes

Status

200

Headers

ETag: W/"5eea57745a10aab90952899e13b48d52"

Body

{
  "roles": {
    "id": "238",
    "name": "My Renamed Role",
    "billing": false,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_company_and_users": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": true,
    "view_others_futures": true,
    "view_others_reports": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false,
    "view_user_board_updated_at": false,
    "created_at": 1733597739,
    "updated_at": 1733597739
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1730224538,
      "beacons": 1732474538,
      "desktop_presences": 1729187738,
      "favorites": 1725904538,
      "fences": 1732301738,
      "groups": 1727286938,
      "networks": 1728842138,
      "roles": 1733597739,
      "settings": 1733597739
    },
    "emergency": null
  }
}

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: 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
comment (string) the comment, case sensitive, included with the status change
automatic (boolean) only find automatic statuses
user_id (string) the ID of a particular user
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'created_at', 'status', 'comment', 'automatic'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.memberships.group', 'user.phones', 'user.recents', 'changed_by_user', 'application'

Request

Route

GET /api/v4/statuses?created_at=1732946400..1733205599

Headers

Content-Type: application/json
Authorization: Bearer Tm74-QY1JaBi0AGnBPS8viTsL_GuTpfWNV_ztWcKKM4

Query Parameters

created_at=1732946400..1733205599

cURL

curl -g "https://www.simpleinout.com/api/v4/statuses?created_at=1732946400..1733205599" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Tm74-QY1JaBi0AGnBPS8viTsL_GuTpfWNV_ztWcKKM4"

Response

Simulated Response

Response Fields

Name Description
statuses (array) an array of matching statuses

Status

200

Headers

ETag: W/"d5b83be54a6201411ccfb7fed6617bc1"
Last-Modified: Sun, 01 Dec 2024 15:00:00 GMT

Body

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "79",
      "changed_by_user_id": null,
      "created_at": 1732953600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": true,
      "user_id": "79",
      "changed_by_user_id": null,
      "created_at": 1732968000
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "79",
      "changed_by_user_id": null,
      "created_at": 1732971600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "79",
      "changed_by_user_id": null,
      "created_at": 1732989600
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": true,
      "user_id": "79",
      "changed_by_user_id": null,
      "created_at": 1733040000
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": true,
      "user_id": "79",
      "changed_by_user_id": null,
      "created_at": 1733061600
    },
    {
      "status": "out",
      "comment": "On Vacation",
      "automatic": false,
      "user_id": "79",
      "changed_by_user_id": "80",
      "created_at": 1733065200
    }
  ],
  "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=1732946400..1733205599",
      "last_href": "http://example.org/api/v4/statuses?created_at=1732946400..1733205599",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1728928538,
      "beacons": 1728150938,
      "desktop_presences": 1732388138,
      "favorites": 1729014938,
      "fences": 1730919338,
      "groups": 1725990938,
      "networks": 1725645338,
      "roles": 1733597738,
      "settings": 1733597738
    },
    "emergency": null
  }
}

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/75/archive

Headers

Content-Type: application/json
Authorization: Bearer twlojwaIT3Z6DZudiOF71yjeYauxkrySxF29KTyuTsY

cURL

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

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', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
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/31/futures

Headers

Content-Type: application/json
Authorization: Bearer vDFVI3BuMA71cq8r6yWss4LRk0DD9xS2ZmD1-KfI8dA

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
futures (object) the newly created future object

Status

201

Headers

ETag: W/"cdc45ce077994508ecaa735f9346610d"

Body

{
  "futures": {
    "id": "4",
    "status": "out",
    "comment": "On Vacation",
    "apply_at": 1738951200,
    "user_id": "31",
    "changed_by_user_id": "30"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1727632537,
      "beacons": 1726422937,
      "desktop_presences": 1728755737,
      "favorites": 1731869737,
      "fences": 1728582937,
      "groups": 1731351337,
      "networks": 1727978137,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

Create a future status update for the current user

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

Endpoint

POST /api/v4/users/my/futures

Parameters

Name Description
future[status] required (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
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 gUUVaXEFn8WyZMzTw_jwzc4og1ZFHUaYRzEtLKjvDMM

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
futures (object) the newly created future object

Status

201

Headers

ETag: W/"7461c58d499de0b793d2912c51cac575"

Body

{
  "futures": {
    "id": "5",
    "status": "out",
    "comment": "On Vacation",
    "apply_at": 1738951200,
    "user_id": "38",
    "changed_by_user_id": null
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1731264937,
      "beacons": 1729187737,
      "desktop_presences": 1725040537,
      "favorites": 1728755737,
      "fences": 1730746537,
      "groups": 1727891737,
      "networks": 1733511337,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

Create a status update for a user

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

Endpoint

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

Parameters

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

Request

Route

POST /api/v4/users/44/statuses

Headers

Content-Type: application/json
Authorization: Bearer BWF2zD0dDGUtiylCe2jqKMB5lPdl-GJHYjYRid56Lxk

Body

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

cURL

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

Response

Simulated Response

Response Fields

Name Description
statuses (object) the newly created status object

Status

201

Headers

ETag: W/"af797bd5c746d2507b6dbf040734a2f9"

Body

{
  "statuses": {
    "status": "in",
    "comment": "In at HQ",
    "automatic": false,
    "user_id": "44",
    "changed_by_user_id": "43",
    "created_at": 1733597737
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1727027737,
      "beacons": 1732388137,
      "desktop_presences": 1732992937,
      "favorites": 1728323737,
      "fences": 1731956137,
      "groups": 1731783337,
      "networks": 1727546137,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

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

Request

Route

POST /api/v4/users/my/statuses

Headers

Content-Type: application/json
Authorization: Bearer sIokCUl0BKiBjLIZhFoiD25eEX28ci1VJjikarbhvYg

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

Response

Simulated Response

Response Fields

Name Description
statuses (object) the newly created status object

Status

201

Headers

ETag: W/"4d0aeae9ef8f2556c253ed3e42b1780a"

Body

{
  "statuses": {
    "status": "in",
    "comment": "In at HQ",
    "automatic": false,
    "user_id": "63",
    "changed_by_user_id": null,
    "created_at": 1733597738
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1726509338,
      "beacons": 1732474538,
      "desktop_presences": 1732906538,
      "favorites": 1730483738,
      "fences": 1730483738,
      "groups": 1725558938,
      "networks": 1731696938,
      "roles": 1733597738,
      "settings": 1733597738
    },
    "emergency": null
  }
}

Create a user

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

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

Request

Route

POST /api/v4/users

Headers

Content-Type: application/json
Authorization: Bearer kP9dav1MjI_ow0gQl2w0eNXKtXFksRCw_EupUodJ0O0

Body

{
  "user": {
    "email": "[email protected]",
    "name": "Bojack Horseman",
    "details": "Lead Actor",
    "lang": "en",
    "phones_attributes": [
      {
        "number": "684-078-9624 x9448"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 6
      }
    ],
    "role_id": "109"
  }
}

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":"684-078-9624 x9448"}],"memberships_attributes":[{"group_id":6}],"role_id":"109"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer kP9dav1MjI_ow0gQl2w0eNXKtXFksRCw_EupUodJ0O0"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly created user object

Status

201

Headers

ETag: W/"5224e130ecddd8700f626f39bc1f2247"

Body

{
  "users": {
    "id": "40",
    "name": "Bojack Horseman",
    "email": "[email protected]",
    "details": "Lead Actor",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "109",
    "created_at": 1733597737,
    "updated_at": 1733597737,
    "cached_at": "1733597737.772481000"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1729187737,
      "beacons": 1730051737,
      "desktop_presences": 1728582937,
      "favorites": 1728496537,
      "fences": 1730138137,
      "groups": 1733597737,
      "networks": 1730224537,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

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', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'

Request

Route

POST /api/v4/users/my/favorites

Headers

Content-Type: application/json
Authorization: Bearer lzJjHUBTwlbR_JCcbyTjtpBuijl2n8xGG8VsbFQElQs

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

Response

Simulated Response

Response Fields

Name Description
users (object) the newly updated user attributes

Status

200

Headers

ETag: W/"f0f6f2c32733d942c4471a808bcf42bf"

Body

{
  "users": {
    "id": "29",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Dolor laboriosam iste.",
    "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": "87",
    "created_at": 1733597737,
    "updated_at": 1733597737,
    "cached_at": "1733597737.406861000"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1725645337,
      "beacons": 1733424937,
      "desktop_presences": 1733079337,
      "favorites": 1730397337,
      "fences": 1729014937,
      "groups": 1729965337,
      "networks": 1730397337,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

Delete a user

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

Endpoint

DELETE /api/v4/users/:id

Request

Route

DELETE /api/v4/users/33

Headers

Content-Type: application/json
Authorization: Bearer tTdzIUhBFYjQqphTFnuVX6-jp_R477AKq2Vcz7g_ka8

cURL

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

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', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
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 0otemv12MC_rep-jE2_Gw90TyOuaGBlgyooJkrjo-eg

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 0otemv12MC_rep-jE2_Gw90TyOuaGBlgyooJkrjo-eg"

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', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
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 NtGpSod3FKe3fn3TeoHMKk8j2JYLA0qU8Z42K5pHa-s

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 NtGpSod3FKe3fn3TeoHMKk8j2JYLA0qU8Z42K5pHa-s"

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 RWtKiAiT0yPa_NGduzWK66ukZ-PaUJOADfREfJaDeZ4

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 RWtKiAiT0yPa_NGduzWK66ukZ-PaUJOADfREfJaDeZ4"

Response

Simulated Response

Status

200

Headers

ETag: W/"f4a784d6f188693a77a78cc6daf6f674"
Last-Modified: Sat, 07 Dec 2024 18:55:38 GMT

Body

{
  "users": [
    {
      "id": "77",
      "name": "Laurence Bartoletti",
      "email": null,
      "details": "Tenetur quas dolorum.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": null,
      "created_at": 1733597738,
      "updated_at": 1733597738,
      "cached_at": "1733597738.486204900"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 1,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users?archived=true",
      "last_href": "http://example.org/api/v4/users?archived=true",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1728496538,
      "beacons": 1726682138,
      "desktop_presences": 1725731738,
      "favorites": 1729965338,
      "fences": 1727718938,
      "groups": 1730224538,
      "networks": 1731178538,
      "roles": 1733597738,
      "settings": 1733597738
    },
    "emergency": null,
    "trusted_cached_at": "1733597723.493868000"
  }
}

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/72/futures

Headers

Content-Type: application/json
Authorization: Bearer 9Q7PzVSb1bZL8dAmkgtq25fPzMHanapJg9tA5pYmp7g

cURL

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

Response

Simulated Response

Response Fields

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

Status

200

Headers

ETag: W/"f39ade1428102110d725e58db5a8e341"
Last-Modified: Sat, 07 Dec 2024 18:55:38 GMT

Body

{
  "futures": [
    {
      "id": "8",
      "status": "out",
      "comment": "Offsite Meeting",
      "apply_at": 1734163200,
      "user_id": "72",
      "changed_by_user_id": null
    },
    {
      "id": "9",
      "status": "out",
      "comment": "Gone Fishing",
      "apply_at": 1739620800,
      "user_id": "72",
      "changed_by_user_id": "73"
    }
  ],
  "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/72/futures?user_id=72",
      "last_href": "http://example.org/api/v4/users/72/futures?user_id=72",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1727459738,
      "beacons": 1729014938,
      "desktop_presences": 1732733738,
      "favorites": 1727286938,
      "fences": 1729014938,
      "groups": 1729878938,
      "networks": 1728755738,
      "roles": 1733597738,
      "settings": 1733597738
    },
    "emergency": null
  }
}

List all future statuses for the current user

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

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 9N5uTq4_Gig01vE3MUoTSFzMPhaxu41k-WoA9Jg8JO0

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 9N5uTq4_Gig01vE3MUoTSFzMPhaxu41k-WoA9Jg8JO0"

Response

Simulated Response

Response Fields

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

Status

200

Headers

ETag: W/"4a669ce8f76c05bbefe35915b3a34712"
Last-Modified: Sat, 07 Dec 2024 18:55:38 GMT

Body

{
  "futures": [
    {
      "id": "6",
      "status": "out",
      "comment": "Offsite Meeting",
      "apply_at": 1734163200,
      "user_id": "57",
      "changed_by_user_id": null
    },
    {
      "id": "7",
      "status": "out",
      "comment": "Gone Fishing",
      "apply_at": 1739620800,
      "user_id": "57",
      "changed_by_user_id": "58"
    }
  ],
  "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=57",
      "last_href": "http://example.org/api/v4/users/my/futures?user_id=57",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1729619738,
      "beacons": 1727373338,
      "desktop_presences": 1727114138,
      "favorites": 1726682138,
      "fences": 1730832938,
      "groups": 1729014938,
      "networks": 1732906538,
      "roles": 1733597738,
      "settings": 1733597738
    },
    "emergency": null
  }
}

List all statuses for a user

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

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/36/statuses?created_at=1732946400..1733205599

Headers

Content-Type: application/json
Authorization: Bearer R6avRbmYTgbfEKz4DPdQQYdOQZdROFb3WudMufL6ybM

Query Parameters

created_at=1732946400..1733205599

cURL

curl -g "https://www.simpleinout.com/api/v4/users/36/statuses?created_at=1732946400..1733205599" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer R6avRbmYTgbfEKz4DPdQQYdOQZdROFb3WudMufL6ybM"

Response

Simulated Response

Response Fields

Name Description
statuses (array) an array of matching statuses

Status

200

Headers

ETag: W/"ea0d28d9b794819f61908f8b3df727ba"
Last-Modified: Sun, 01 Dec 2024 15:00:00 GMT

Body

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "36",
      "changed_by_user_id": null,
      "created_at": 1732953600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "36",
      "changed_by_user_id": null,
      "created_at": 1732968000
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "36",
      "changed_by_user_id": null,
      "created_at": 1732971600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "36",
      "changed_by_user_id": null,
      "created_at": 1732989600
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "36",
      "changed_by_user_id": null,
      "created_at": 1733040000
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "36",
      "changed_by_user_id": null,
      "created_at": 1733061600
    },
    {
      "status": "out",
      "comment": "Vacation",
      "automatic": false,
      "user_id": "36",
      "changed_by_user_id": "37",
      "created_at": 1733065200
    }
  ],
  "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/36/statuses?created_at=1732946400..1733205599&user_id=36",
      "last_href": "http://example.org/api/v4/users/36/statuses?created_at=1732946400..1733205599&user_id=36",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1726941337,
      "beacons": 1729706137,
      "desktop_presences": 1726422937,
      "favorites": 1728582937,
      "fences": 1733597737,
      "groups": 1730570137,
      "networks": 1732647337,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

List all statuses for the current user

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

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=1732946400..1733205599

Headers

Content-Type: application/json
Authorization: Bearer _ZlRyUpklaG37UlYJUDjcq7rMUC3K4K6xegLi-hKAn8

Query Parameters

created_at=1732946400..1733205599

cURL

curl -g "https://www.simpleinout.com/api/v4/users/my/statuses?created_at=1732946400..1733205599" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer _ZlRyUpklaG37UlYJUDjcq7rMUC3K4K6xegLi-hKAn8"

Response

Simulated Response

Response Fields

Name Description
statuses (array) an array of matching statuses

Status

200

Headers

ETag: W/"b640f51e812ddc3af8a0f8fda8c7596d"
Last-Modified: Sun, 01 Dec 2024 15:00:00 GMT

Body

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "69",
      "changed_by_user_id": null,
      "created_at": 1732953600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "69",
      "changed_by_user_id": null,
      "created_at": 1732968000
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "69",
      "changed_by_user_id": null,
      "created_at": 1732971600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "69",
      "changed_by_user_id": null,
      "created_at": 1732989600
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "69",
      "changed_by_user_id": null,
      "created_at": 1733040000
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "69",
      "changed_by_user_id": null,
      "created_at": 1733061600
    },
    {
      "status": "out",
      "comment": "Vacation",
      "automatic": false,
      "user_id": "69",
      "changed_by_user_id": "70",
      "created_at": 1733065200
    }
  ],
  "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=1732946400..1733205599&user_id=69",
      "last_href": "http://example.org/api/v4/users/my/statuses?created_at=1732946400..1733205599&user_id=69",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1731178538,
      "beacons": 1730832938,
      "desktop_presences": 1731264938,
      "favorites": 1725040538,
      "fences": 1726509338,
      "groups": 1728842138,
      "networks": 1733165738,
      "roles": 1733597738,
      "settings": 1733597738
    },
    "emergency": null
  }
}

List all users

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

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

Request

Route

GET /api/v4/users

Headers

Content-Type: application/json
Authorization: Bearer y-5YxgWjsW5vwtl4qwXnEa8XzE_NlREvknVD_m7J_Jo

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 y-5YxgWjsW5vwtl4qwXnEa8XzE_NlREvknVD_m7J_Jo"

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/"a723f6e3d7b5efc4e756d9c0c4ce4515"
Last-Modified: Sat, 07 Dec 2024 18:55:38 GMT

Body

{
  "users": [
    {
      "id": "50",
      "name": "Malory Archer",
      "email": "[email protected]",
      "details": "Qui esse tempore.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "133",
      "created_at": 1733597737,
      "updated_at": 1733597737,
      "cached_at": "1733597737.984927000"
    },
    {
      "id": "51",
      "name": "Sterling Archer",
      "email": "[email protected]",
      "details": "Sapiente sed ea.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "135",
      "created_at": 1733597737,
      "updated_at": 1733597737,
      "cached_at": "1733597737.989627000"
    },
    {
      "id": "52",
      "name": "Lana Kane",
      "email": "[email protected]",
      "details": "Dolor ut sed.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "135",
      "created_at": 1733597737,
      "updated_at": 1733597737,
      "cached_at": "1733597737.995584000"
    },
    {
      "id": "53",
      "name": "Ray Gillette",
      "email": "[email protected]",
      "details": "Eos harum maiores.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "135",
      "created_at": 1733597738,
      "updated_at": 1733597738,
      "cached_at": "1733597738.000121000"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 4,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users",
      "last_href": "http://example.org/api/v4/users",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "announcements": 1733511337,
      "beacons": 1730138137,
      "desktop_presences": 1727718937,
      "favorites": 1729706137,
      "fences": 1733165737,
      "groups": 1728669337,
      "networks": 1732388137,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null,
    "trusted_cached_at": "1733597723.007139000"
  }
}

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

Request

Route

GET /api/v4/users/60

Headers

Content-Type: application/json
Authorization: Bearer YQ0J8aYRKYNIw5Jx34Ma6mw5TfagqwfJC_w7AyHoLsU

cURL

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

Response

Simulated Response

Response Fields

Name Description
users (object) a user object

Status

200

Headers

ETag: W/"041088d3809319fda7645a8830ef99ad"
Last-Modified: Sat, 07 Dec 2024 18:55:38 GMT

Body

{
  "users": {
    "id": "60",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Et aliquid aut.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "147",
    "created_at": 1733597738,
    "updated_at": 1733597738,
    "cached_at": "1733597738.121230100"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1731264938,
      "beacons": 1727632538,
      "desktop_presences": 1731610538,
      "favorites": 1731264938,
      "fences": 1727891738,
      "groups": 1728582938,
      "networks": 1725731738,
      "roles": 1733597738,
      "settings": 1733597738
    },
    "emergency": null
  }
}

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

Request

Route

GET /api/v4/users/my

Headers

Content-Type: application/json
Authorization: Bearer K-DJCaSIFs6zYhCWNYDsjD9bZmzx1BWlqv6fIpCBvWg

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 K-DJCaSIFs6zYhCWNYDsjD9bZmzx1BWlqv6fIpCBvWg"

Response

Simulated Response

Response Fields

Name Description
users (object) a user object

Status

200

Headers

ETag: W/"8aac43993035325a2d1999edf6562978"
Last-Modified: Sat, 07 Dec 2024 18:55:38 GMT

Body

{
  "users": {
    "id": "62",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Dolor mollitia corrupti.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "151",
    "created_at": 1733597738,
    "updated_at": 1733597738,
    "cached_at": "1733597738.153332000"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1730310938,
      "beacons": 1728755738,
      "desktop_presences": 1728582938,
      "favorites": 1733511338,
      "fences": 1731178538,
      "groups": 1731696938,
      "networks": 1726077338,
      "roles": 1733597738,
      "settings": 1733597738
    },
    "emergency": null
  }
}

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: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

POST /api/v4/users/149/unarchive

Headers

Content-Type: application/json
Authorization: Bearer 1x-842z3HNymmLMQrKPPrbN3a_DH_escTXS-weZQutY

Body

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

cURL

curl "https://www.simpleinout.com/api/v4/users/149/unarchive" -d '{"user":{"email":"[email protected]","role_id":"365"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 1x-842z3HNymmLMQrKPPrbN3a_DH_escTXS-weZQutY"

Response

Simulated Response

Status

200

Headers

ETag: W/"fbaad6238d45318b6146e4556ed7bb03"

Body

{
  "users": {
    "id": "149",
    "name": "Gov. Danna Kessler",
    "email": "[email protected]",
    "details": "Sequi ratione laboriosam.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "365",
    "created_at": 1733597740,
    "updated_at": 1733597740,
    "cached_at": "1733597740.684926000"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1733424940,
      "beacons": 1727891740,
      "desktop_presences": 1733597740,
      "favorites": 1726854940,
      "fences": 1729101340,
      "groups": 1725126940,
      "networks": 1726163740,
      "roles": 1733597740,
      "settings": 1733597740
    },
    "emergency": null
  }
}

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', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
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 xHBw8TzL7y9KuPIX5nV8_Vcd0JBjP2vRzrKHFpnns8Y

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

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

Request

Route

PATCH /api/v4/users/49

Headers

Content-Type: application/json
Authorization: Bearer mItiZywML4zhgPRZ_ZKN-g7lmH13iR8jjHu2wl0sgZs

Body

{
  "user": {
    "phones_attributes": [
      {
        "number": "228.185.4799 x618"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 10
      }
    ]
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/49" -d '{"user":{"phones_attributes":[{"number":"228.185.4799 x618"}],"memberships_attributes":[{"group_id":10}]}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer mItiZywML4zhgPRZ_ZKN-g7lmH13iR8jjHu2wl0sgZs"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly updated user attributes

Status

200

Headers

ETag: W/"36e6a76743d7815a4fae52194c6bc7e7"

Body

{
  "users": {
    "id": "49",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Quia dignissimos est.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "131",
    "created_at": 1733597737,
    "updated_at": 1733597737,
    "cached_at": "1733597737.965251000"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1727286937,
      "beacons": 1725558937,
      "desktop_presences": 1728410137,
      "favorites": 1731264937,
      "fences": 1729878937,
      "groups": 1733597737,
      "networks": 1728064537,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}

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

Request

Route

PATCH /api/v4/users/my

Headers

Content-Type: application/json
Authorization: Bearer Yg7339fs-Yy2VkcETTEjuJYKvs3CRkwo9qisz5nXD60

Body

{
  "user": {
    "phones_attributes": [
      {
        "number": "228-593-5739"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 9
      }
    ]
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my" -d '{"user":{"phones_attributes":[{"number":"228-593-5739"}],"memberships_attributes":[{"group_id":9}]}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Yg7339fs-Yy2VkcETTEjuJYKvs3CRkwo9qisz5nXD60"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly updated user attributes

Status

200

Headers

ETag: W/"f3c816614148bf781ccf63e432557b32"

Body

{
  "users": {
    "id": "47",
    "name": "Fabian Hettinger VM",
    "email": "[email protected]",
    "details": "Qui hic ipsa.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "125",
    "created_at": 1733597737,
    "updated_at": 1733597737,
    "cached_at": "1733597737.927184800"
  },
  "meta": {
    "last_updated_at": {
      "announcements": 1726595737,
      "beacons": 1726509337,
      "desktop_presences": 1728755737,
      "favorites": 1731264937,
      "fences": 1730660137,
      "groups": 1733597737,
      "networks": 1731783337,
      "roles": 1733597737,
      "settings": 1733597737
    },
    "emergency": null
  }
}