Upwork · Capability

Upwork GraphQL API — Authentication

Upwork GraphQL API — Authentication. 1 operations. Lead operation: Upwork Get OAuth2 Access Token. Self-contained Naftiko capability covering one Upwork business surface.

Run with Naftiko UpworkAuthentication

What You Can Do

POST
Getoauthtoken — Upwork Get OAuth2 Access Token
/v1/api/auth/v1/oauth/token

MCP Tools

upwork-get-oauth2-access-token

Upwork Get OAuth2 Access Token

read-only

Capability Spec

graphql-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Upwork GraphQL API — Authentication
  description: 'Upwork GraphQL API — Authentication. 1 operations. Lead operation: Upwork Get OAuth2 Access Token. Self-contained
    Naftiko capability covering one Upwork business surface.'
  tags:
  - Upwork
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UPWORK_API_KEY: UPWORK_API_KEY
capability:
  consumes:
  - type: http
    namespace: graphql-authentication
    baseUri: https://api.upwork.com
    description: Upwork GraphQL API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: api-auth-v1-oauth-token
      path: /api/auth/v1/oauth/token
      operations:
      - name: getoauthtoken
        method: POST
        description: Upwork Get OAuth2 Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.UPWORK_API_KEY}}'
  exposes:
  - type: rest
    namespace: graphql-authentication-rest
    port: 8080
    description: REST adapter for Upwork GraphQL API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/auth/v1/oauth/token
      name: api-auth-v1-oauth-token
      description: REST surface for api-auth-v1-oauth-token.
      operations:
      - method: POST
        name: getoauthtoken
        description: Upwork Get OAuth2 Access Token
        call: graphql-authentication.getoauthtoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: graphql-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Upwork GraphQL API — Authentication. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: upwork-get-oauth2-access-token
      description: Upwork Get OAuth2 Access Token
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: graphql-authentication.getoauthtoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.