For the complete documentation index, see llms.txt. This page is also available as Markdown.

Studios

Studios that give Shop credits to their players out of a budget, managed by admins

List studios (Admin)

get
/admin/studios

Every studio with its budget figures. Requires signed fetch from an address in READ_ONLY_ADMIN_ADDRESSES or READ_WRITE_ADMIN_ADDRESSES.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Responses
200

The studios, by name

application/json
get/admin/studios
GET /admin/studios HTTP/1.1
Host: credits.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "studios": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "status": "active",
      "createdBy": "text",
      "createdAt": 1,
      "updatedAt": 1,
      "balanceCents": 1,
      "depositedCents": 1,
      "grantedCents": 1,
      "grantCount": 1,
      "operatorCount": 1
    }
  ]
}

Create a studio (Admin)

post
/admin/studios

Creates an active studio with an empty budget. Names are unique regardless of case. Requires signed fetch from an address in READ_WRITE_ADMIN_ADDRESSES; that address is recorded as the creator.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Body
namestring · max: 80Required

Trimmed before it is stored; a single line of printable characters

Responses
201

Studio created

application/json
post/admin/studios
POST /admin/studios HTTP/1.1
Host: credits.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 22

{
  "name": "Pixel Forge"
}
{
  "studio": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "status": "active",
    "createdBy": "text",
    "createdAt": 1,
    "updatedAt": 1,
    "balanceCents": 1,
    "depositedCents": 1,
    "grantedCents": 1,
    "grantCount": 1,
    "operatorCount": 1
  }
}

Get a studio (Admin)

get
/admin/studios/{studioId}

The studio, its operators and a page of its budget history, newest first. Requires signed fetch from an address in READ_ONLY_ADMIN_ADDRESSES or READ_WRITE_ADMIN_ADDRESSES.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Path parameters
studioIdstring · uuidRequired
Query parameters
limitinteger · min: 1 · max: 200Optional

History entries per page. Larger values are capped at 200; invalid ones fall back to 50.

Default: 50
offsetintegerOptionalDefault: 0
Responses
200

The studio

application/json
get/admin/studios/{studioId}
GET /admin/studios/{studioId} HTTP/1.1
Host: credits.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "studio": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "status": "active",
    "createdBy": "text",
    "createdAt": 1,
    "updatedAt": 1,
    "balanceCents": 1,
    "depositedCents": 1,
    "grantedCents": 1,
    "grantCount": 1,
    "operatorCount": 1
  },
  "operators": [
    {
      "address": "text",
      "addedBy": "text",
      "createdAt": 1
    }
  ],
  "entries": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "kind": "deposit",
      "usdCents": 1,
      "note": null,
      "createdBy": "text",
      "createdAt": 1,
      "creditId": null,
      "recipient": null
    }
  ],
  "page": {
    "limit": 1,
    "offset": 1,
    "total": 1
  },
  "grantLimits": {
    "maxGrantCents": null
  }
}

Update a studio (Admin)

patch
/admin/studios/{studioId}

Renames a studio, or pauses or resumes it. Send only the fields to change. A paused studio keeps its budget but cannot grant. Requires signed fetch from an address in READ_WRITE_ADMIN_ADDRESSES.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Path parameters
studioIdstring · uuidRequired
Body
namestring · max: 80Optional
statusstring · enumOptionalPossible values:
Responses
200

Studio updated

application/json
patch/admin/studios/{studioId}
PATCH /admin/studios/{studioId} HTTP/1.1
Host: credits.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "status": "paused"
}
{
  "studio": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "status": "active",
    "createdBy": "text",
    "createdAt": 1,
    "updatedAt": 1,
    "balanceCents": 1,
    "depositedCents": 1,
    "grantedCents": 1,
    "grantCount": 1,
    "operatorCount": 1
  }
}

Add a studio operator (Admin)

post
/admin/studios/{studioId}/operators

Allows a wallet to act for the studio. Adding a wallet that is already an operator is not an error. Requires signed fetch from an address in READ_WRITE_ADMIN_ADDRESSES.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Path parameters
studioIdstring · uuidRequired
Body
addressstringRequiredPattern: ^0x[a-fA-F0-9]{40}$
Responses
200

The wallet was already an operator; nothing changed

application/json
studioIdstring · uuidRequired
addressstringRequired
addedbooleanOptional

Present when adding; false if the wallet was already an operator

removedbooleanOptional

Present when removing

post/admin/studios/{studioId}/operators
POST /admin/studios/{studioId}/operators HTTP/1.1
Host: credits.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "address": "text"
}
{
  "studioId": "123e4567-e89b-12d3-a456-426614174000",
  "address": "text",
  "added": true,
  "removed": true
}

Remove a studio operator (Admin)

delete
/admin/studios/{studioId}/operators/{address}

Stops a wallet from acting for the studio. Requires signed fetch from an address in READ_WRITE_ADMIN_ADDRESSES.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Path parameters
studioIdstring · uuidRequired
addressstringRequired

The operator's wallet

Pattern: ^0x[a-fA-F0-9]{40}$
Responses
200

The wallet was removed

application/json
studioIdstring · uuidRequired
addressstringRequired
addedbooleanOptional

Present when adding; false if the wallet was already an operator

removedbooleanOptional

Present when removing

delete/admin/studios/{studioId}/operators/{address}
DELETE /admin/studios/{studioId}/operators/{address} HTTP/1.1
Host: credits.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "studioId": "123e4567-e89b-12d3-a456-426614174000",
  "address": "text",
  "added": true,
  "removed": true
}

Top up or adjust a studio's budget (Admin)

post
/admin/studios/{studioId}/budget

Adds an entry to the studio's budget ledger. credits are whole Shop credits (1 credit = 10 cents) and are stored as cents. A deposit must be positive. An adjustment may go either way, needs a note, and may never take the balance below zero. Requires signed fetch from an address in READ_WRITE_ADMIN_ADDRESSES; that address is recorded on the entry.

New budget (a deposit or an upward adjustment) counts against a service-wide daily ceiling on deposits (DAILY_STUDIO_DEPOSIT_LIMIT_CENTS, UTC day by the database clock) and is refused while no ceiling is configured. Studios themselves have no limits: what a studio can give is its budget.

Idempotent on idempotencyKey: repeating a request with the same key and the same body answers 200 with replayed: true and the entry the first request wrote, and writes nothing, even once the day's ceiling is reached. The same key with a different body is refused. A new entry is announced on Slack; a replay is not.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Path parameters
studioIdstring · uuidRequired
Body
kindstring · enumRequiredPossible values:
creditsnot · min: -10000000 · max: 10000000Required

Positive for a deposit; either sign for an adjustment. At most 10,000,000 either way.

notestring · max: 200 · nullableOptional

Optional on a deposit, required on an adjustment

idempotencyKeystringRequired

The caller's key for this operation, e.g. a new UUID; reuse it only to retry it

Pattern: ^[A-Za-z0-9._:-]{8,128}$
Responses
200

The key already recorded this change; nothing new was written

application/json
entryIdstring · uuidRequired
studioIdstring · uuidRequired
kindstring · enumRequiredPossible values:
usdCentsintegerRequired

The change in cents, signed

balanceCentsintegerRequired

The studio's balance now (after the change, or as it stands on a replay)

replayedbooleanRequired

True when the idempotency key had already recorded this change

post/admin/studios/{studioId}/budget
POST /admin/studios/{studioId}/budget HTTP/1.1
Host: credits.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 113

{
  "kind": "deposit",
  "credits": 5000,
  "note": "October budget",
  "idempotencyKey": "7f9c2ba4-e88f-4c4b-9a39-1b5d8c3c2f10"
}
{
  "entryId": "123e4567-e89b-12d3-a456-426614174000",
  "studioId": "123e4567-e89b-12d3-a456-426614174000",
  "kind": "deposit",
  "usdCents": 1,
  "balanceCents": 1,
  "replayed": true
}

Last updated