---
updatedAt: 2025-10-16T12:25:30.000Z
agentTools:
  projectIndex: https://clayhr.readme.io/llms.txt
---

# Get goals by User Id.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "API Documentation",
    "version": "1.0",
    "title": "BizMerlinHR REST APIs",
    "termsOfService": "https://www.clayhr.com/terms-of-service/"
  },
  "tags": [
    {
      "name": "Goals",
      "description": "List of APIs for Goals"
    }
  ],
  "paths": {
    "/goal/list": {
      "get": {
        "tags": [
          "Goals"
        ],
        "summary": "Get goals by User Id.",
        "operationId": "getGoalsListUsingGET",
        "parameters": [
          {
            "name": "userId",
            "in": "query",
            "description": "userId",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "userid",
            "in": "header",
            "description": "userid",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "description": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Iterable"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "deprecated": false
      }
    }
  },
  "servers": [
    {
      "url": "//acmecompany.clayhr.com/rm"
    }
  ],
  "components": {
    "schemas": {
      "Iterable": {
        "type": "object",
        "title": "Iterable"
      }
    }
  }
}
```