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

# Account Usage

> View account-level usage statistics.

`GET /v1/usage`

<Note>
  **v1.0 schema lock.** The response shape on this page is the locked v1.0 contract. We will never remove a documented field, never rename a field, and never change a field's type without bumping to v2 (see [Versioning](/get-started/versioning)). New fields may be added additively; your client must tolerate unknown keys.
</Note>

View account-level usage statistics including API request counts, import activity, and error rates. Filterable by dealership and date range.

## Parameters

| Name            | Type   | In    | Required | Description                                                                |
| --------------- | ------ | ----- | -------- | -------------------------------------------------------------------------- |
| `api_key`       | string | query | Yes      | Your API key                                                               |
| `dealership_id` | string | query | No       | Filter stats to a specific dealership (public ID, e.g. `dlr_8cfc0b00a98b`) |
| `start_date`    | string | query | No       | Start of date range (ISO 8601, e.g. `2026-04-01T00:00:00Z`)                |
| `end_date`      | string | query | No       | End of date range (ISO 8601, e.g. `2026-04-30T23:59:59Z`)                  |

## Example

```bash theme={null}
curl "https://api.autosnap.com/v1/usage?api_key=YOUR_API_KEY&start_date=2026-04-01T00:00:00Z"
```

## Response

```json theme={null}
{
  "success": true,
  "requests": {
    "total_requests": 629,
    "successful": 624,
    "errors": 5,
    "rate_limited": 0,
    "billable": 629
  },
  "imports": {
    "total_imports": 213,
    "completed": 213,
    "failed": 0,
    "total_vehicles_processed": 230191
  }
}
```


## OpenAPI

````yaml GET /v1/usage
openapi: 3.0.3
info:
  title: AutosnapAI Origin API
  description: Dealer resolution, inventory management, and webhook APIs
  version: 1.0.0
servers:
  - url: https://api.autosnap.com
    description: Production
security: []
paths:
  /v1/usage:
    get:
      tags:
        - origin
      summary: Get Usage
      description: 'Account usage stats: request counts, imports, errors.'
      operationId: get_usage_v1_usage_get
      parameters:
        - name: api_key
          in: query
          required: true
          schema:
            type: string
            title: Api Key
        - name: dealership_id
          in: query
          required: false
          schema:
            type: string
            nullable: true
            title: Dealership Id
        - name: start_date
          in: query
          required: false
          schema:
            type: string
            nullable: true
            title: Start Date
        - name: end_date
          in: query
          required: false
          schema:
            type: string
            nullable: true
            title: End Date
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````