Boxes API
Boxes API
Section titled “Boxes API”The Boxes API allows you to create and manage protection boxes for claimed identities. A box defines the protection policy for a claimed identity.
List Boxes
Section titled “List Boxes”List boxes associated with your account.
Endpoint
Section titled “Endpoint”GET /v1/lmif/boxesRequest
Section titled “Request”const boxes = await lmif.boxes.list({ limit: 20, policy: 'MONETIZE'});curl https://api.lookmaimfamous.com/v1/lmif/boxes?limit=20 \ -H "Authorization: Bearer lmif_live_xxx"Query Parameters
Section titled “Query Parameters”| Parameter | Type | Description |
|---|---|---|
limit | integer | Max items (default: 20, max: 100) |
offset | integer | Items to skip |
policy | string | Filter by policy type |
claimId | string | Filter by claim ID |
Response
Section titled “Response”{ "data": [ { "id": "box_abc123", "claimId": "claim_xyz789", "identityName": "Taylor Swift", "policy": "MONETIZE", "enforcement": "MODERATE", "royaltyRate": 0.10, "status": "active", "createdAt": "2024-01-05T00:00:00Z", "stats": { "totalViolations": 47, "activeGracePeriods": 3, "licensedPlatforms": 12, "monthlyRevenue": 15000 } } ], "meta": { "total": 1, "limit": 20, "offset": 0 }}Get Box
Section titled “Get Box”Get details of a specific box.
Endpoint
Section titled “Endpoint”GET /v1/lmif/boxes/{id}Request
Section titled “Request”const box = await lmif.boxes.get('box_abc123');curl https://api.lookmaimfamous.com/v1/lmif/boxes/box_abc123 \ -H "Authorization: Bearer lmif_live_xxx"Response
Section titled “Response”{ "data": { "id": "box_abc123", "claimId": "claim_xyz789", "identityName": "Taylor Swift", "policy": "MONETIZE", "enforcement": "MODERATE", "policyConfig": { "royaltyRate": 0.10, "revenueTypes": ["subscription", "per_message", "tips"], "minimumPayout": 100, "contentGuidelines": "https://...", "nsfw": false }, "status": "active", "createdAt": "2024-01-05T00:00:00Z", "updatedAt": "2024-01-10T00:00:00Z", "stats": { "totalViolations": 47, "resolvedViolations": 44, "activeGracePeriods": 3, "licensedPlatforms": 12, "totalLicenses": 15, "monthlyRevenue": 15000, "lifetimeRevenue": 45000 } }}Create Box
Section titled “Create Box”Create a protection box for a verified claim.
Endpoint
Section titled “Endpoint”POST /v1/lmif/boxesRequest
Section titled “Request”const box = await lmif.boxes.create({ claimId: 'claim_xyz789', policy: 'MONETIZE', enforcement: 'MODERATE', policyConfig: { royaltyRate: 0.10, revenueTypes: ['subscription', 'per_message', 'tips'], minimumPayout: 100, nsfw: false }});curl -X POST https://api.lookmaimfamous.com/v1/lmif/boxes \ -H "Authorization: Bearer lmif_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "claimId": "claim_xyz789", "policy": "MONETIZE", "enforcement": "MODERATE", "policyConfig": { "royaltyRate": 0.10, "revenueTypes": ["subscription", "per_message", "tips"], "minimumPayout": 100, "nsfw": false } }'Request Body
Section titled “Request Body”| Field | Type | Required | Description |
|---|---|---|---|
claimId | string | Yes | ID of the verified claim |
policy | string | Yes | Policy type (see below) |
enforcement | string | No | Enforcement level (default: MODERATE) |
policyConfig | object | No | Policy-specific configuration |
Policy Types
Section titled “Policy Types”| Policy | Description |
|---|---|
BLOCK_ALL | No AI avatars allowed |
BLOCK_COMMERCIAL | Allow personal, block commercial |
MONETIZE | Allow with revenue share |
LICENSE | Require explicit license |
TEAM | Only authorized accounts |
OPEN | Allow all (monitoring only) |
Policy Config by Type
Section titled “Policy Config by Type”For MONETIZE:
{ "royaltyRate": 0.10, "revenueTypes": ["subscription", "per_message", "tips", "ads"], "minimumPayout": 100, "nsfw": false}For LICENSE:
{ "licenseTypes": { "personal": { "price": 0, "autoApprove": true }, "creator": { "price": 50, "autoApprove": false }, "commercial": { "price": 500, "autoApprove": false } }, "contentGuidelines": "https://...", "nsfw": false}For TEAM:
{ "authorizedAccounts": ["account_123", "account_456"], "platformWhitelist": ["myorbit.ai"]}For BLOCK_COMMERCIAL:
{ "allowedUses": ["personal", "educational", "parody"]}Response
Section titled “Response”{ "data": { "id": "box_new456", "claimId": "claim_xyz789", "identityName": "Taylor Swift", "policy": "MONETIZE", "enforcement": "MODERATE", "status": "active", "createdAt": "2024-01-15T10:00:00Z", "initialScan": { "status": "in_progress", "estimatedCompletion": "2024-01-15T10:05:00Z" } }}Update Box
Section titled “Update Box”Update a box’s policy or configuration.
Endpoint
Section titled “Endpoint”PATCH /v1/lmif/boxes/{id}Request
Section titled “Request”const updated = await lmif.boxes.update('box_abc123', { policy: 'BLOCK_ALL', enforcement: 'STRICT'});curl -X PATCH https://api.lookmaimfamous.com/v1/lmif/boxes/box_abc123 \ -H "Authorization: Bearer lmif_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "policy": "BLOCK_ALL", "enforcement": "STRICT" }'Updateable Fields
Section titled “Updateable Fields”| Field | Description |
|---|---|
policy | Policy type |
enforcement | Enforcement level |
policyConfig | Policy configuration |
Delete Box
Section titled “Delete Box”Remove a box (stops protection).
Endpoint
Section titled “Endpoint”DELETE /v1/lmif/boxes/{id}Request
Section titled “Request”await lmif.boxes.delete('box_abc123');curl -X DELETE https://api.lookmaimfamous.com/v1/lmif/boxes/box_abc123 \ -H "Authorization: Bearer lmif_live_xxx"Response
Section titled “Response”{ "data": { "id": "box_abc123", "deleted": true, "deletedAt": "2024-01-15T12:00:00Z", "activeLicenses": 15, "licenseAction": "remain_active" }}Get Box Statistics
Section titled “Get Box Statistics”Get detailed statistics for a box.
Endpoint
Section titled “Endpoint”GET /v1/lmif/boxes/{id}/statsResponse
Section titled “Response”{ "data": { "boxId": "box_abc123", "period": "2024-01", "violations": { "detected": 47, "resolved": 44, "pending": 3, "appealed": 2 }, "gracePeriods": { "active": 3, "expired": 41, "resolved": 38 }, "licenses": { "total": 15, "active": 12, "pending": 2, "expired": 1 }, "revenue": { "monthly": 15000, "lifetime": 45000, "byType": { "subscriptions": 10000, "messages": 3000, "tips": 2000 } }, "platforms": { "licensed": 12, "topPlatforms": [ { "name": "Platform A", "revenue": 5000, "users": 10000 }, { "name": "Platform B", "revenue": 3000, "users": 7500 } ] } }}Enforcement Levels
Section titled “Enforcement Levels”| Level | Behavior |
|---|---|
STRICT | Immediate action, no exceptions |
MODERATE | Standard grace period, standard review |
RELAXED | Extended grace period, lenient on edge cases |