Harvest Roles API

The Roles API from Harvest — 2 operation(s) for roles.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /roles List roles · List roles #
Ask an LLM
“Which roles are defined in my Harvest account?”
“Can I see all user roles?”
Tell an agent
List all roles.
Show every role defined in the account.
POST /roles Create a role · Create a role #
Ask an LLM
“How do I add a new role for users?”
“Can I define a custom role?”
Tell an agent
Create a role.
Add a new role to the account.
GET /roles/{role_id} Retrieve a role · Retrieve a role #
Ask an LLM
“What are the details of one role?”
“Can I look up a role by its ID?”
Tell an agent
Show role {role_id}.
Get the details of role {role_id}.
PATCH /roles/{role_id} Update a role · Update a role #
Ask an LLM
“How do I rename or change a role?”
“Can I edit an existing role?”
Tell an agent
Update role {role_id}.
Change the details of role {role_id}.
DELETE /roles/{role_id} Delete a role · Delete a role #
Ask an LLM
“How do I remove a role?”
“Can I delete a role I no longer use?”
Tell an agent destructive · confirm first
Delete role {role_id}.
Remove the role {role_id} from the account.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/harvest:harvest-roles-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

harvest-roles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harvest API v2 Roles API
  version: 2.0.0
  description: 'REST API for Harvest time tracking, projects, clients, invoices,

    estimates, expenses, tasks, users, roles, company settings, and reports.

    Authentication uses a personal access token or OAuth 2.0 bearer token in

    the Authorization header together with the Harvest-Account-Id header.'
  contact:
    name: Harvest API Documentation
    url: https://help.getharvest.com/api-v2/
servers:
- url: https://api.harvestapp.com/v2
  description: Harvest production API
security:
- bearerAuth: []
tags:
- name: Roles
paths:
  /roles:
    get:
      summary: List roles
      operationId: listRoles
      tags:
      - Roles
      responses:
        '200':
          description: List of roles.
    post:
      summary: Create a role
      operationId: createRole
      tags:
      - Roles
      responses:
        '201':
          description: Role created.
  /roles/{role_id}:
    get:
      summary: Retrieve a role
      operationId: getRole
      tags:
      - Roles
      parameters:
      - in: path
        name: role_id
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Role details.
    patch:
      summary: Update a role
      operationId: updateRole
      tags:
      - Roles
      parameters:
      - in: path
        name: role_id
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Role updated.
    delete:
      summary: Delete a role
      operationId: deleteRole
      tags:
      - Roles
      parameters:
      - in: path
        name: role_id
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Role deleted.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Personal access token or OAuth 2.0 access token passed in the

        Authorization header. The Harvest-Account-Id header (or account_id

        query parameter) is also required.

        '