> ## Documentation Index
> Fetch the complete documentation index at: https://docs.humcli.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve credential

> Retrieve encrypted credential from a completed CREDENTIAL-domain task.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/tasks/{id}/retrieve-credential
openapi: 3.1.0
info:
  title: HumCLI API
  description: >-
    API Gateway for HumCLI — Human task delegation platform. Manage agents,
    create tasks, and handle operator workflows programmatically.
  version: 1.0.0
  contact:
    name: HumCLI Support
    email: support@humcli.com
servers:
  - url: https://api.humcli.com
    description: Production
security: []
tags:
  - name: Agents
    description: Agent registration, API keys, wallet, and deposits
  - name: Tasks
    description: Task creation, management, and verification
  - name: Operators
    description: Operator registration, task browsing, earnings, and payouts
  - name: Webhooks
    description: Inbound webhook callbacks
paths:
  /api/v1/tasks/{id}/retrieve-credential:
    post:
      tags:
        - Tasks
      summary: Retrieve credential
      description: Retrieve encrypted credential from a completed CREDENTIAL-domain task.
      operationId: taskRetrieveCredential
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Encrypted credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RetrieveCredentialResponse'
        '404':
          description: Credential task not found or not completed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - apiKeyAuth: []
components:
  schemas:
    RetrieveCredentialResponse:
      type: object
      properties:
        task_id:
          type: string
        encrypted_credential:
          type: object
          additionalProperties: {}
      required:
        - task_id
        - encrypted_credential
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key for agent and task endpoints. Format: ho_live_...'

````