# Analyze a job posting (/docs/reference/analyze-job)

`POST https://api.getmattered.com/api/v1/developer/analyze-job`

Extracts the keywords a recruiter screens for from a job posting, with category and importance. Spends the tokens it uses plus the request fee, recorded as `analyze_job`.

Authentication: `Authorization: Bearer gm_live_...` (see /authentication.md).

## Request body (application/json)

```json
{
  "type": "object",
  "properties": {
    "jobDescription": {
      "type": "string",
      "minLength": 50,
      "maxLength": 50000,
      "description": "The job posting text, 50 to 50,000 characters.",
      "example": "We are hiring a Senior Frontend Engineer with React, TypeScript and GraphQL experience to own our design system..."
    }
  },
  "required": [
    "jobDescription"
  ],
  "additionalProperties": false
}
```

## Responses

### 200: The posting keywords.

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "keywords": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "term": {
                "type": "string",
                "description": "Keyword or skill term",
                "example": "React"
              },
              "category": {
                "type": "string",
                "enum": [
                  "technical_skill",
                  "soft_skill",
                  "certification",
                  "tool",
                  "experience",
                  "education",
                  "industry_knowledge"
                ],
                "description": "Category of the keyword",
                "example": "technical_skill"
              },
              "importance": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10,
                "description": "Importance weight (1-10)",
                "example": 9
              }
            },
            "required": [
              "term",
              "category",
              "importance"
            ],
            "additionalProperties": false
          },
          "description": "The keywords a recruiter screens for, with category and importance."
        },
        "usage": {
          "type": "object",
          "properties": {
            "tokens": {
              "type": "integer",
              "description": "The tokens this call spent from the key owner's account: the work it ran plus the request fee.",
              "example": 450
            }
          },
          "required": [
            "tokens"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "keywords",
        "usage"
      ],
      "additionalProperties": false
    },
    "meta": {
      "type": "object",
      "properties": {
        "duration": {
          "type": "number",
          "minimum": 0,
          "description": "Request duration in milliseconds",
          "example": 150
        },
        "performance": {
          "type": "object",
          "properties": {
            "dbQueries": {
              "type": "integer",
              "minimum": 0
            },
            "totalDbTime": {
              "type": "number",
              "minimum": 0
            }
          },
          "description": "Performance metrics (preview/local only)"
        },
        "requestId": {
          "type": "string",
          "description": "Unique request identifier",
          "example": "req_abc123"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 timestamp",
          "example": "2026-11-17T12:00:00.000Z"
        },
        "version": {
          "type": "string",
          "description": "API version",
          "example": "v1"
        }
      }
    },
    "success": {
      "type": "boolean",
      "enum": [
        true
      ]
    }
  },
  "required": [
    "data",
    "success"
  ],
  "additionalProperties": false,
  "description": "Successful API response"
}
```

### 400: Bad Request

### 401: Unauthorized

### 402: The key owner's API balance has no tokens for this call. Nothing was spent.

### 404: Not Found

### 429: Too Many Requests

### 500: Internal Server Error

Error responses use the envelope in /errors.md.