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

# Get Lead History

> Get the activity history of a lead with GET /api/leads/{id}/history: status changes, notes, updates from integrations and the API, and conversion syncs, newest first.

Returns the activity feed of one lead, as shown on the lead in the app: status changes, notes, updates from your CRM or the API, and the results of conversion uploads to your ad platforms.

All entries are returned, newest first. This endpoint is not paginated.

## Path Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `id` | string | Yes | Octanist lead ID |

## Example Request

```bash theme={null}
curl -X GET \
  -H "X-API-KEY: your_api_key" \
  "https://octanist.com/api/leads/lead_abc123/history"
```

## Example Response

```json theme={null}
{
  "success": true,
  "data": [
    {
      "id": "hist_003",
      "type": "external_note",
      "content": "Signed the yearly contract",
      "createdAt": "2026-02-20T14:00:05.000Z",
      "userName": null,
      "source": "api"
    },
    {
      "id": "hist_002",
      "type": "external_update",
      "content": "Lead updated via api",
      "createdAt": "2026-02-20T14:00:00.000Z",
      "userName": null,
      "source": "api"
    },
    {
      "id": "hist_001",
      "type": "lead_created",
      "content": "Lead created manually.",
      "createdAt": "2026-01-15T10:30:00.000Z",
      "userName": "Jane Smith",
      "source": "manual"
    }
  ],
  "meta": {
    "requestId": "req_a1b2c3d4e5f6",
    "timestamp": "2026-03-10T12:00:00.000Z"
  }
}
```

## Response Fields

| Field | Type | Description |
| - | - | - |
| `id` | string | Entry ID |
| `type` | string | Kind of entry, for example `lead_created`, `status_change`, `milestone_reached`, `external_update`, `external_note`, `manual_note`, `sync_success`, `sync_failed` or `sync_skipped` |
| `content` | string | Text of the entry as shown in the app |
| `createdAt` | string | When the entry was created (ISO 8601) |
| `userName` | string \| null | Name of the person who made the change in the app, or `null` for integrations and the API |
| `source` | string \| null | Where the change came from, for example `api`, `manual`, or an integration such as `pipedrive`, when the entry records it |
| `statusChange` | object \| null | Only on `status_change` entries: `{ "from": "open", "to": "won" }`, or `null` when the entry does not record both statuses |

New entry types can be added over time. Treat unknown types as plain activity.

## Error Responses

| Status | Code | Description |
| - | - | - |
| 401 | `UNAUTHORIZED` | Missing or invalid API key |
| 403 | `LEAD_LOCKED` | The lead is over your plan's lead limit. See [Locked leads](https://octanist.com/docs/api-reference/endpoint/get-lead.md#locked-leads). |
| 404 | `NOT_FOUND` | No lead with this ID in your organization |
| 500 | `INTERNAL_ERROR` | Server error |


## OpenAPI

````yaml GET /api/leads/{id}/history
openapi: 3.0.1
info:
  title: Octanist API
  description: >-
    The Octanist API allows you to create, update and read leads, run reports,
    read workspace settings, retrieve statistics, and access ad spend data.
  version: 2.5.0
  contact:
    name: Octanist Support
    url: https://octanist.com/docs
servers:
  - url: https://octanist.com
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /api/leads/{id}/history:
    get:
      tags:
        - Leads
      summary: Get Lead History
      description: The activity history of a lead, newest first. Not paginated.
      parameters:
        - name: id
          in: path
          required: true
          description: Octanist lead ID
          schema:
            type: string
            example: lead_abc123
      responses:
        '200':
          description: History entries
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/LeadHistoryEntry'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'LEAD_LOCKED: the lead is over the plan''s lead limit'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Lead not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    LeadHistoryEntry:
      type: object
      properties:
        id:
          type: string
          example: hist_001
        type:
          type: string
          description: >-
            Kind of entry, for example lead_created, status_change,
            milestone_reached, external_update, external_note, manual_note,
            sync_success, sync_failed or sync_skipped. New types can be added.
          example: external_update
        content:
          type: string
          example: Lead updated via api
        createdAt:
          type: string
          format: date-time
        userName:
          type: string
          nullable: true
          description: >-
            Person who made the change in the app; null for integrations and the
            API
        source:
          type: string
          nullable: true
          description: Where the change came from, when recorded
          example: api
        statusChange:
          type: object
          nullable: true
          description: Only on status_change entries
          properties:
            from:
              type: string
            to:
              type: string
    Meta:
      type: object
      properties:
        requestId:
          type: string
          example: req_a1b2c3d4e5f6
        timestamp:
          type: string
          format: date-time
          example: '2026-03-10T12:00:00.000Z'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human readable error message
              example: Human readable error message
            details:
              type: object
              description: Optional additional error details
        meta:
          $ref: '#/components/schemas/Meta'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.