Users API

Keito provides a workspace-scoped team directory for administrator integrations. The directory follows Harvest’s distinction between reporting roles and permission roles, and includes the workspace-specific capacity needed by payroll and reporting tools.

Permissions

Credential and identity GET /users GET /roles and GET /users/{id}/teammates
Full-access key for an Owner or Administrator Full team directory Allowed
Cost-rate automation key with users:read for an Owner or Administrator Full team directory Allowed
Personal read-only sync key Reduced compatibility directory Not allowed
Other identities Not allowed Not allowed

Every response is limited to the workspace selected by the authenticated credential and Keito-Account-Id header. A full-access key does not make its user an Administrator.

List Workspace Users

GET /api/v2/users

For administrator directory calls, the supported query parameters are is_active, employee_id, page, and per_page. Those results are ordered by the user’s creation time, newest first. Personal sync keys use the separate filters and ordering documented below.

curl "https://app.keito.ai/api/v2/users?is_active=true&per_page=100" \
  -H "Authorization: Bearer $KEITO_API_KEY" \
  -H "Keito-Account-Id: $KEITO_ACCOUNT_ID"

An administrator response contains a users array in the standard API v2 pagination envelope:

{
  "users": [
    {
      "id": "user_id",
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane@example.com",
      "employee_id": "EMP-100",
      "is_active": true,
      "is_contractor": false,
      "weekly_capacity": 126000,
      "currency": "GBP",
      "roles": ["Developer"],
      "access_roles": ["member"],
      "created_at": "2026-09-15T08:00:00.000Z"
    }
  ],
  "page": 1,
  "per_page": 100,
  "total_pages": 1,
  "total_entries": 1,
  "links": {
    "first": "...",
    "next": null,
    "previous": null,
    "last": "..."
  }
}

weekly_capacity is the member’s capacity for this workspace in seconds. For example, 35 hours is 126000.

roles contains active custom reporting-role names such as Developer or Designer. These labels do not grant access. access_roles contains permission roles such as member, manager, or administrator; use this field for authorization decisions.

If an existing integration checked roles for permission names, migrate that check to access_roles.

Imported placeholder members use their original imported email when Keito can safely recover it. Contact-erased members always remain redacted; erasure takes precedence over imported identity data. Cost rates and billable rates are never included in this directory.

Personal read-only sync keys receive their existing reduced /users shape. It omits email, capacity, custom reporting roles, and management relationships, and retains permission values in roles for compatibility. See Personal Read-Only Sync Keys for that exact contract.

Get One User

GET /api/v2/users/{id}

Full-access credentials only. Owners and Administrators receive the same workspace-scoped person representation as the /users directory, including reporting roles, permission access_roles, and contact-erasure masking. Cost and billable rates are omitted from this directory representation.

Other internal members can read only their own ID. Their response uses the self-profile fields and rate visibility of /users/me, without its company and capabilities blocks or administrator directory fields such as employee_id. Managers cannot use this endpoint to look up somebody else’s profile. It returns one JSON object, with no users array or pagination envelope.

curl "https://app.keito.ai/api/v2/users/user_id_here" \
  -H "Authorization: Bearer $KEITO_API_KEY" \
  -H "Keito-Account-Id: $KEITO_ACCOUNT_ID"

An administrator request for a missing or foreign-workspace person returns 404; a non-administrator request for another person returns 403. Personal sync, cost-rate automation and AI-app (MCP) credentials cannot use this endpoint. /users/me keeps its existing credential-specific contract and provides company details where authorized.

List a User’s Project Assignments

Method Endpoint Scope
GET /api/v2/users/me/project_assignments The credential’s own user
GET /api/v2/users/{id}/project_assignments The selected workspace member

These reads require a full-access credential. Owners and Administrators can read another workspace member’s assignments. A manager needs canEditTimeAndExpenses and a directly assigned teammate. Other members can read their own assignments only. Non-administrators see only projects to which they are actively assigned themselves; this project intersection is applied before counting and pagination. A missing or foreign-workspace member returns 404, and a denied teammate read returns 403.

Only active person assignments on active projects appear. Each result includes project, minimal client identity (or null), and task_assignments. Nested tasks must be active, allow new time (allowNewTime), and satisfy the target person’s task restrictions. This is project membership; /api/v2/assignments remains the separate Planning allocation API. can_track_time describes the assignment and does not override other tracking policies.

curl "https://app.keito.ai/api/v2/users/me/project_assignments?per_page=100" \
  -H "Authorization: Bearer $KEITO_API_KEY" \
  -H "Keito-Account-Id: $KEITO_ACCOUNT_ID"

Responses use project_assignments in the standard pagination envelope:

{
  "project_assignments": [],
  "page": 1,
  "per_page": 100,
  "total_pages": 0,
  "total_entries": 0,
  "links": {
    "first": "/api/v2/users/me/project_assignments?page=1&per_page=100",
    "next": null,
    "previous": null,
    "last": "/api/v2/users/me/project_assignments?page=1&per_page=100"
  }
}

Use page (starting at 1), per_page (default 100, maximum 2000), and optional updated_since as an ISO 8601 timestamp filtering the assignment’s update time. Results are ordered by assignment creation time, newest first, then ID descending. The self path always selects the credential’s user; identity-selection query parameters and unknown filters are rejected. Select a different person through the path only.

The person’s hourly_rate, budget and use_default_rates require the existing person-assignment billable-rate permission. Nested task billing/rates and budgets follow separate project-financial and project-budget permissions, including showBudgetToAll; internal cost values are never returned. The web app’s additional hour-budget summary grants do not grant these API financial fields. Personal sync, cost-rate automation and AI-app credentials are refused. Servers advertise these reads through resource-reads-v1 in X-Keito-Features.

Add a Person

POST /api/v2/users

Owner or Administrator full-access credentials on Pro or Business can add an active workspace member, assign them to projects, and log time for them in the same integration run. Personal sync, cost-rate automation and AI-app credentials are refused. The person keeps the same ID when they first sign in.

Field Required Meaning
first_name, email Yes First name and a new sign-in address; email is stored lowercase
last_name No Last name
is_contractor No Contractor membership, default false
access_roles No Permission roles; default ["member"]. Including administrator grants workspace administrator access.
weekly_capacity No Seconds per week, 0–604800; defaults to workspace capacity
default_hourly_rate, currency No Billable rate and ISO 4217 currency; currency defaults to the workspace
cost_rate, cost_rate_start_date No First effective-dated cost rate; date requires cost_rate and defaults to today in the workspace timezone
employee_id No Workspace employee reference, at most 100 characters
send_invitation No Always true; false returns 400. Use Team in Keito to prepare someone without inviting them.
curl -X POST "https://app.keito.ai/api/v2/users" \
  -H "Authorization: Bearer $KEITO_API_KEY" \
  -H "Keito-Account-Id: $KEITO_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: add-synthetic-person-001" \
  --data '{"first_name":"Example","last_name":"Person","email":"person@example.com","access_roles":["member"]}'

Keito creates the sign-in identity before saving the person and emails a sign-in code after saving. 201 returns the workspace user with invitation.status of sent or failed. A failed email leaves the person in place: use the invitation endpoint below instead of creating them again. An unavailable sign-in service returns 503 with nothing created; retry using the same Idempotency-Key.

A same-workspace email conflict returns 409 with existing_user_id and existing_user_is_active; this includes deactivated and imported Harvest members. Reactivate an eligible member through PATCH rather than duplicating them. Other addresses that cannot be added, including an existing sign-in identity or pending invitation, receive a generic 409 directing you to invite from Team in Keito. The API never links another account into your workspace without that person’s acceptance. Permanently removed addresses are refused.

The create limit is 100 people per workspace per UTC day. Validation and account-check refusals do not count; requests that proceed to the sign-in service do. Further attempts return 429 with Retry-After. The initial code counts toward the resend limit below. Request bodies are strict; see OpenAPI for exact limits and response schemas.

Update, Deactivate or Reactivate a Person

PATCH /api/v2/users/{id}

The same Owner/Administrator, full-access and team-management-plan requirements apply. Send at least one of first_name, last_name, email, weekly_capacity, default_hourly_rate, employee_id, is_contractor, or is_active. Unknown fields return 400; a foreign-workspace user returns 404. To change dated cost rates, use the dedicated cost-rate endpoint below.

curl -X PATCH "https://app.keito.ai/api/v2/users/user_id_here" \
  -H "Authorization: Bearer $KEITO_API_KEY" \
  -H "Keito-Account-Id: $KEITO_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deactivate-person-001" \
  --data '{"is_active":false}'

is_active: false works like Archive on Team: history remains, the member disappears from /users?is_active=true, and their API keys stop working. true restores the same ID. You cannot deactivate yourself or the workspace owner. Only the owner can deactivate or restore accountant access; a contact-erased member cannot be restored (412).

Email changes are limited to members without a linked sign-in identity. API-created people are linked at creation, so their email is managed through their sign-in (409). Imported people who have not joined and managed contractors are managed from Team (409). All refusal checks run before writes. Changes then apply in steps, each audited; an unexpected later failure may leave a partial update, so read the person before retrying. Use Idempotency-Key for safe replay.

Resend a Sign-in Code

POST /api/v2/users/{id}/invitation

Owner/Administrator full-access credentials on Pro or Business can resend a code to an active linked member who has never signed in. Send no request body and use Idempotency-Key. Personal sync, cost-rate automation and AI-app credentials are refused.

curl -X POST "https://app.keito.ai/api/v2/users/user_id_here/invitation" \
  -H "Authorization: Bearer $KEITO_API_KEY" \
  -H "Keito-Account-Id: $KEITO_ACCOUNT_ID" \
  -H "Idempotency-Key: resend-sign-in-person-001"

Already signed-in, deactivated, unjoined imported, contact-erased, or deleted sign-in identities return 409; use Team where re-invitation is required. An unavailable sign-in service returns 503. At most three codes per person every 15 minutes are allowed, including the initial code; excess requests return 429 with Retry-After.

List Reporting Roles

GET /api/v2/roles

Returns custom reporting roles and the users who have both a current workspace membership and an unsuppressed assignment to that role. A user’s active or archived status does not change whether that assignment is listed.

curl "https://app.keito.ai/api/v2/roles?per_page=100" \
  -H "Authorization: Bearer $KEITO_API_KEY" \
  -H "Keito-Account-Id: $KEITO_ACCOUNT_ID"
{
  "roles": [
    {
      "id": "role_id",
      "name": "Developer",
      "user_ids": ["user_id"],
      "created_at": "2026-09-15T08:00:00.000Z",
      "updated_at": "2026-09-15T08:00:00.000Z"
    }
  ],
  "page": 1,
  "per_page": 100,
  "total_pages": 1,
  "total_entries": 1,
  "links": {
    "first": "...",
    "next": null,
    "previous": null,
    "last": "..."
  }
}

The endpoint supports page and per_page and returns roles newest first. Personal read-only sync keys cannot call this endpoint.

List a Manager’s Teammates

GET /api/v2/users/{id}/teammates

Returns the minimal identities directly assigned to a manager in the selected workspace.

curl "https://app.keito.ai/api/v2/users/$MANAGER_USER_ID/teammates?per_page=100" \
  -H "Authorization: Bearer $KEITO_API_KEY" \
  -H "Keito-Account-Id: $KEITO_ACCOUNT_ID"
{
  "teammates": [
    {
      "id": "user_id",
      "first_name": "Alex",
      "last_name": "Smith",
      "email": "alex@example.com"
    }
  ],
  "page": 1,
  "per_page": 100,
  "total_pages": 1,
  "total_entries": 1,
  "links": {
    "first": "...",
    "next": null,
    "previous": null,
    "last": "..."
  }
}

The endpoint supports page and per_page. A missing or foreign-workspace user returns 404 Not Found. A same-workspace user without the Manager permission role returns 422 Unprocessable Entity. Personal read-only sync keys cannot call this endpoint.

Current User

GET /api/v2/users/me

Returns the authenticated identity. This existing endpoint has a separate response contract from the administrator directory:

  • Full-access integration keys return the user profile and resolved company.
  • Personal read-only sync keys return a reduced profile and read capabilities. They intentionally omit company and user_type.
curl "https://app.keito.ai/api/v2/users/me" \
  -H "Authorization: Bearer kto_xxxxx" \
  -H "Keito-Account-Id: your_company_id"

Full-access integration key response shape:

{
  "id": "user_id_here",
  "first_name": "Jane",
  "last_name": "Doe",
  "email": "jane@example.com",
  "roles": ["administrator", "manager", "member"],
  "user_type": "human",
  "company": {
    "id": "company_id_here",
    "name": "Acme Consulting"
  }
}

For the exact reduced personal sync response, see Personal Read-Only Sync Keys. Do not require company when consuming that key type.

Effective-dated cost rates

Method Endpoint Purpose
GET /api/v2/users/{id}/cost_rates Paginated effective-dated history, oldest first
POST /api/v2/users/{id}/cost_rates Create a new effective-dated cost rate

Only Owners/Administrators can use this surface. A scoped automation key additionally needs cost_rates:read or cost_rates:write, respectively. POST requires an Idempotency-Key, start_date, and the rate fields in OpenAPI. Future start dates are supported. Keito closes only the adjacent preceding rate and derives the new end date from the next scheduled rate; it does not rewrite historical entry cost snapshots. Personal sync keys do not gain cost visibility.

Keito is not affiliated with, endorsed or sponsored by Harvest or Bending Spoons.