---
title: "Quick start"
site: api
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/api/2027.1/rest/quick-start/
type: task
application: platform_integration
last_updated: 2026-10-18
commit: f37120b6b82b
---


Make your first call to the REST API: authenticate with a token, read a page of records and check the paging headers. Do this before you build an integration, to confirm the token, the user and the network path work.

## Before you begin

- An administrator with the `api_token_administrator` or `administrator` role has created a System API token for you with the validation type **None (Bearer token in Header)**. See [Create a System API token](page:admin/integrations/create-a-system-api-token) in the Administrator guide.
- The token's **Impersonate user** can read the `User` table. Every request runs as this user.
- If the token has **Allowed Scopes**, they include **REST API (v1)**.
- You know your instance URL, for example `https://<instance>.servicely.ai`.
- You have an HTTP client. The examples use curl.

## Steps

<Steps>
  <Step>
    Store the token in an environment variable so it stays out of your shell history and scripts.

    ```bash
    export SERVICELY_TOKEN='<token>'
    ```
  </Step>
  <Step>
    Request one user record. Send the token in the `Authorization` header with the `Bearer` scheme.

    ```bash
    curl -i "https://<instance>.servicely.ai/v1/User?fields=id,Name&page_size=1" \
      -H "Authorization: Bearer $SERVICELY_TOKEN"
    ```
  </Step>
  <Step>
    Check the status line. A 200 means the call worked. A 401 means the token was not accepted: check the header and that the token is active. A 404 means no record matched.
  </Step>
  <Step>
    Read the body. The records are in the `data` array, with only the fields you named in `fields`.

    ```json
    {
        "data": [
            {
                "Name": "<user name>",
                "id": "00000000000000000000000000000110"
            }
        ]
    }
    ```
  </Step>
  <Step>
    Read the paging headers. `X-Total-Result-Count` is the number of matching records and `X-Result-More: true` means more pages follow.

    ```http
    X-Page: 1
    X-Page-Size: 1
    X-Result-Count: 1
    X-Result-More: true
    X-Total-Result-Count: 14
    ```
  </Step>
  <Step>
    Fetch the same record by its ID to read a single record. The `data` key now holds one object instead of an array.

    ```bash
    curl "https://<instance>.servicely.ai/v1/User/00000000000000000000000000000110?fields=id,Name,Email" \
      -H "Authorization: Bearer $SERVICELY_TOKEN"
    ```
  </Step>
</Steps>

## Result

You have read records through the REST API as the token's user. The same URL pattern, `/v1/<Table>` and `/v1/<Table>/<id>`, serves every table the user can read.

Basic authentication with a username and password also works, unless an administrator has turned it off. For requests that must prove they were not changed in transit, sign them with HMAC instead of sending a bearer token.

## Related

- [Query records and operators](page:rest/query-records)
- [Create, update and delete records](page:rest/create-update-and-delete-records)
- [Sign requests with HMAC](page:rest/sign-requests-with-hmac)
- [Authentication methods for inbound integrations](page:admin/integrations/inbound-authentication)
