```yaml
product: AlterLab
title: Integrations API Reference
category: api
comparison_context: "AlterLab is an alternative to Firecrawl, ScrapingBee, and Bright Data."
source_url: https://alterlab.io/docs/api/generated/integrations
```

# Integrations API Reference

Auto-generated API reference for integrations endpoints, built from the OpenAPI spec.

## GET /api/v1/integrations/proxies

List Integrations
List all proxy integrations for the authenticated user.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `include_inactive` | query | `boolean` | no | Include disabled integrations |
| `provider` | query | `"smartproxy" \| "smartproxyorg" \| "brightdata" \| "oxylabs" \| "iproyal" \| "webshare" \| "dataimpulse" \| "netnut"` | no | Filter by provider |

## POST /api/v1/integrations/proxies

Create Integration
Create a new proxy integration by connecting to a provider.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `name` | body | `string` | yes | Friendly name for this integration (e.g., 'My SmartProxy Account') |
| `provider` | body | `"smartproxy" \| "smartproxyorg" \| "brightdata" \| "oxylabs" \| "iproyal" \| "webshare" \| "dataimpulse" \| "netnut"` | yes | Supported proxy providers. |
| `credentials` | body | `object` | yes | Provider-specific credentials (e.g., api_key, username, password, zone) |
| `is_default` | body | `boolean` | no | Set as default proxy provider for all scraping requests |

## GET /api/v1/integrations/proxies/providers

List Providers
Get list of supported proxy providers with their info.

Authentication: `X-API-Key: <your key>`

## PUT /api/v1/integrations/proxies/reorder

Batch Reorder Integrations
Batch reorder proxy integrations by priority. This endpoint allows reordering multiple integrations at once by setting their priorities. Lower priority numbers mean higher priority (0 = highest). The top-most ENABLED integration automatically becomes the default.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integrations` | body | `object[]` | yes | List of integrations with their new priorities |

## DELETE /api/v1/integrations/proxies/{integration_id}

Delete Integration
Delete a proxy integration.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes | Integration ID |

## GET /api/v1/integrations/proxies/{integration_id}

Get Integration
Get detailed proxy integration info with endpoints.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes | Integration ID |

## PUT /api/v1/integrations/proxies/{integration_id}

Update Integration
Update a proxy integration.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes | Integration ID |
| `name` | body | `string` | no |  |
| `is_active` | body | `boolean` | no |  |
| `is_default` | body | `boolean` | no |  |
| `priority` | body | `integer` | no |  |

## PUT /api/v1/integrations/proxies/{integration_id}/default

Set Default Integration
Set an integration as the default for scraping requests.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes | Integration ID |

## POST /api/v1/integrations/proxies/{integration_id}/refresh

Refresh Endpoints
Refresh cached proxy endpoints from the provider.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes | Integration ID |

## POST /api/v1/integrations/proxies/{integration_id}/test

Test Integration
Test proxy integration connectivity.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes | Integration ID |
| `test_url` | body | `string` | no | URL to test proxy connectivity against |
| `timeout_seconds` | body | `integer` | no | Request timeout in seconds |

## GET /api/v1/integrations/proxies/{integration_id}/usage

Get Provider Usage
Get usage statistics from the proxy provider's API.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes | Integration ID |

## POST /api/v1/integrations/proxies/{integration_id}/validate

Validate Integration
Re-validate credentials with the provider.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes | Integration ID |

## GET /api/v1/integrations/storage

List Integrations
List all storage integrations for the authenticated user.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `include_inactive` | query | `boolean` | no | Include disabled integrations |
| `provider` | query | `"s3" \| "gcs" \| "azure"` | no | Filter by provider |

## POST /api/v1/integrations/storage

Create Integration
Create a new storage integration by connecting to a cloud provider.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `name` | body | `string` | yes | Friendly name (e.g., 'My S3 Bucket') |
| `provider` | body | `"s3" \| "gcs" \| "azure"` | yes | Supported cloud storage providers. |
| `credentials` | body | `object` | yes | Provider-specific credentials |
| `bucket` | body | `string` | yes | Bucket or container name |
| `region` | body | `string` | no |  |
| `prefix` | body | `string` | no | Default key prefix for uploads |
| `is_default` | body | `boolean` | no | Set as default export destination |

## GET /api/v1/integrations/storage/providers

List Providers
Get list of supported cloud storage providers with their info.

Authentication: `Authorization: Bearer <session token>`

## DELETE /api/v1/integrations/storage/{integration_id}

Delete Integration
Delete a storage integration.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes |  |

## GET /api/v1/integrations/storage/{integration_id}

Get Integration
Get details of a specific storage integration.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes |  |

## PUT /api/v1/integrations/storage/{integration_id}

Update Integration
Update a storage integration's settings (not credentials).

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes |  |
| `name` | body | `string` | no |  |
| `bucket` | body | `string` | no |  |
| `region` | body | `string` | no |  |
| `prefix` | body | `string` | no |  |
| `is_active` | body | `boolean` | no |  |
| `is_default` | body | `boolean` | no |  |

## PUT /api/v1/integrations/storage/{integration_id}/credentials

Update Credentials
Update credentials for a storage integration. Triggers re-validation.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes |  |
| `credentials` | body | `object` | yes | New provider-specific credentials |

## PUT /api/v1/integrations/storage/{integration_id}/default

Set Default Integration
Set a storage integration as the default export destination.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes |  |

## POST /api/v1/integrations/storage/{integration_id}/test

Test Integration
Test a storage integration by uploading and deleting a small test file.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes |  |

## POST /api/v1/integrations/storage/{integration_id}/validate

Validate Integration
Validate credentials and bucket access for a storage integration.

Authentication: `Authorization: Bearer <session token>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `integration_id` | path | `string` | yes |  |
