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

# Create a store analysis job

Triggers a full Shopify store scrape. Requires authentication via Clerk JWT, API key, or x402 payment.

` POST /jobs `

Create a store analysis job

Triggers a full Shopify store scrape. Requires authentication via Clerk JWT, API key, or x402 payment.

## Servers

- ` https://shopsniffer.com/api `

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` BearerAuth `: ` http `

  - HTTP scheme: ` bearer `

  - Clerk JWT token

### Alternative 2

- ` ApiKeyAuth `: ` apiKey `

  - Credential: ` X-API-Key ` in ` header `

  - API key created via POST /api/api-keys

## Request body (required)

Content type: ` application/json `

- ` value `: type ` unknown `

## Responses

### ` 201 ` — Job created

Content type: ` application/json `

- ` value `: type ` object `

  - ` job `: type ` object `

    - ` id `: type ` string `; format ` uuid `

    - ` domain `: type ` string `

    - ` slug `: type ` string `

    - ` status `: type ` string `

      - enum: ` ["pending"] `

### ` 400 ` — Invalid request — missing or malformed fields

### ` 401 ` — Unauthorized — missing or invalid auth

### ` 402 ` — Payment required — x402 payment details in response headers

## Request examples

### cURL

```curl
curl -X POST 'https://shopsniffer.com/api/jobs' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d 'null'
```

### JavaScript

```javascript
const response = await fetch('https://shopsniffer.com/api/jobs', {
  method: 'POST',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN",
      "Content-Type": "application/json"
  },
  body: JSON.stringify(null)
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.post('https://shopsniffer.com/api/jobs', headers=headers, json=null)
print(response.json())
```