Rightwork OG Image
Browse API documentation
API docsWorkforce API v1

Connection & access

Check which company, environment, and permissions your key can access and when it expires.

Request

GET /api/external/v1/connection

Any valid Workforce API key works. This endpoint takes no query parameters. Set up your key and base URL before running this example.

Shell
curl --fail-with-body \
  -H "Authorization: Bearer $RIGHTWORK_API_KEY" \
  -H "Accept: application/json" \
  "$RIGHTWORK_BASE_URL/api/external/v1/connection"

Example response

JSON
{
  "data": {
    "integration_id": "00000000-0000-4000-8000-000000000701",
    "name": "Example workforce integration",
    "company_id": "00000000-0000-4000-8000-000000000801",
    "company_name": "Example Hospitality",
    "environment": "production",
    "scopes": [
      "employees:read",
      "locations:read",
      "reference:read",
      "schedules:read",
      "time_entries:read",
      "time_off:read"
    ],
    "expires_at": "2026-12-17T18:00:00+00:00",
    "api_version": "v1",
    "location_access": "explicit_list",
    "capabilities": [
      "connection",
      "locations",
      "employees",
      "roles",
      "time-off-types",
      "schedules",
      "time-off-requests",
      "time-entries"
    ],
    "limits": {
      "reads_per_minute": 60,
      "max_page_size": 500,
      "max_window_days": 31,
      "max_source_rows": 10000,
      "snapshot_seconds": 900,
      "max_retained_snapshots": 4
    }
  },
  "meta": {
    "request_id": "00000000-0000-4000-8000-000000000901"
  }
}

Check scopes for the permissions your key has. capabilities lists available features. Each report requires its own scope and one approved location. Use limits to plan your request rate and page size.

Response fields

FieldTypeFormat / values
integration_idstringuuid
namestring
company_idstringuuid
company_namestring
environmentstring
scopesarray of strings
expires_atstringdate-time
api_versionstringv1
location_accessstringexplicit_list
capabilitiesarray of strings
limitsobject
limits.reads_per_minuteinteger
limits.max_page_sizeinteger
limits.max_window_daysinteger
limits.max_source_rowsinteger
limits.snapshot_secondsinteger
limits.max_retained_snapshotsinteger

Use meta.request_id when contacting support.