Storage Allocation Management

Storage Allocation Management

These endpoints manage decentralized storage allocations and permissions.

Insert Allocation

  • Path: /v2/allocation

  • Method: POST

  • Access: Signature API

  • Description: Creates a new allocation for the authenticated user. Used to provision decentralized storage via blobbers.

  • Headers Required: AuthHeader

  • Body:

{
  "id": "a1b2c3d4e5f6g7h8i9j0",
  "name": "My First Allocation",
  "description": "This is my primary storage allocation.",
  "allocation_type": "standard",
  "alloc_blobbers_type": "hot"
}
  • Response:

Update Allocation

  • Path: /v2/allocation

  • Method: PUT

  • Access: Signature API

  • Description: Updates an existing allocation with new configuration such as size or blobber replacement.

  • Headers Required: AuthHeader

  • Body:

  • Response:

Delete Allocation

  • Path: /v2/allocation/:ID

  • Method: DELETE

  • Access: Signature API

  • Description: Permanently deletes a specified allocation.

  • Path Param: ID (string)

  • Headers Required: AuthHeader

  • Response:

Get Allocation

  • Path: /v2/allocation

  • Method: GET

  • Access: Signature API

  • Description: Fetches details of an allocation by ID using body data.

  • Headers Required: AuthHeader

  • Body:

  • Response:

Get Allocation List

  • Path: /v2/allocation/list

  • Method: GET

  • Access: Signature API

  • Description: Retrieves all allocations for the authenticated owner.

  • Headers Required: AuthHeader

  • Response: Array of AllocResponse objects.

Check Allocation Name

  • Path: /v2/allocation/exists/name

  • Method: GET

  • Access: Signature API

  • Query Parameter: allocation_name (string, required)

  • Headers Required: AuthHeader

  • Response:

Check Allocation (by user + app)

  • Path: /v2/allocation/exists

  • Method: GET

  • Access: CSRF API

  • Headers Required: NonAuthHeader

  • Response:

Public Smart Contract Allocation Info

GetSCAllocation

  • Path: /v2/getAllocation

  • Method: GET

  • Access: Public

  • Query Parameter: allocation (string, required)

  • Description: Returns full SC data and blobber info.

  • Response (simplified):

GetSCAllocations

  • Path: /v2/geAllocations

  • Method: GET

  • Access: Public

  • Query Parameter: client (string, required)

  • Description: Lists SC allocations for a specific client ID.

Last updated