Upwork · Capability

Upwork REST API — Reports

Upwork REST API — Reports. 1 operations. Lead operation: Upwork Get Company Hours Worked Report. Self-contained Naftiko capability covering one Upwork business surface.

Run with Naftiko UpworkReports

What You Can Do

GET
Getcompanyhoursworked — Upwork Get Company Hours Worked Report
/v1/v3/reports/companies/{company-id}/hours/hours-worked

MCP Tools

upwork-get-company-hours-worked

Upwork Get Company Hours Worked Report

read-only idempotent

Capability Spec

rest-reports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Upwork REST API — Reports
  description: 'Upwork REST API — Reports. 1 operations. Lead operation: Upwork Get Company Hours Worked Report. Self-contained
    Naftiko capability covering one Upwork business surface.'
  tags:
  - Upwork
  - Reports
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UPWORK_API_KEY: UPWORK_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-reports
    baseUri: https://www.upwork.com/api
    description: Upwork REST API — Reports business capability. Self-contained, no shared references.
    resources:
    - name: v3-reports-companies-company_id-hours-hours_worked
      path: /v3/reports/companies/{company_id}/hours/hours_worked
      operations:
      - name: getcompanyhoursworked
        method: GET
        description: Upwork Get Company Hours Worked Report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: company_id
          in: path
          type: string
          description: The company identifier
          required: true
        - name: tq
          in: query
          type: string
          description: Table query for filtering (Upwork Query Language)
    authentication:
      type: bearer
      token: '{{env.UPWORK_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-reports-rest
    port: 8080
    description: REST adapter for Upwork REST API — Reports. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v3/reports/companies/{company-id}/hours/hours-worked
      name: v3-reports-companies-company-id-hours-hours-worked
      description: REST surface for v3-reports-companies-company_id-hours-hours_worked.
      operations:
      - method: GET
        name: getcompanyhoursworked
        description: Upwork Get Company Hours Worked Report
        call: rest-reports.getcompanyhoursworked
        with:
          company_id: rest.company_id
          tq: rest.tq
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-reports-mcp
    port: 9090
    transport: http
    description: MCP adapter for Upwork REST API — Reports. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: upwork-get-company-hours-worked
      description: Upwork Get Company Hours Worked Report
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-reports.getcompanyhoursworked
      with:
        company_id: tools.company_id
        tq: tools.tq
      outputParameters:
      - type: object
        mapping: $.