Images Videos Audio Pricing Docs View as Markdown (Agent) Get started
Human Agent

API reference

Share Links

Password-protected links to one private image or MP4 video, for Starter and Pro projects. The link (pixelvault.dev/s/{id}) opens a page that asks for the password and then shows the media through a short-lived signed URL. Links expire after 1 hour to 90 days (default 7 days) and can be revoked at any time.

The Share link object

A password-protected link to one private image or MP4 video. The password is never returned.

Properties

The Share link object properties
Property Type Description
id string

Share-link id (shr_ prefix).

url string (uri)

The page to send the recipient. Send the password separately.

asset_id string

The shared image (img_) or video (vid_).

asset_kind string

One of: image, video

status string

revoked once revoked, else expired once expires_at has passed, else active.

One of: active, expired, revoked

expires_at string (date-time)
revoked_at string (date-time) nullable
created_at string (date-time)
origin string

Where the link was created.

One of: api, dashboard, mcp, cli

The Share link object
{
  "id": "shr_abc123def456",
  "url": "https://pixelvault.dev/s/shr_abc123def456",
  "asset_id": "img_abc123def456",
  "asset_kind": "image",
  "status": "active",
  "expires_at": "2026-11-29T12:00:00.000Z",
  "revoked_at": null,
  "created_at": "2026-11-22T12:00:00.000Z",
  "origin": "api"
}

GET /v1/share-links

Lists the project's share links, newest first, including expired and revoked ones. Filter to one asset with asset_id.

API key, or a dashboard session token, sent as Authorization: Bearer <token>.

Query parameters
Name Type Required Description
asset_id string Optional

Only links to this image or video.

limit integer Optional

Maximum number of links to return.

Default: 50

min 1 · max 100

Request
Response 200
{
  "data": [
    {
      "id": "shr_abc123def456",
      "url": "https://pixelvault.dev/s/shr_abc123def456",
      "asset_id": "img_abc123def456",
      "asset_kind": "image",
      "status": "active",
      "expires_at": "2026-11-29T12:00:00.000Z",
      "revoked_at": null,
      "created_at": "2026-11-22T12:00:00.000Z",
      "origin": "api"
    }
  ]
}

POST /v1/share-links

Creates a password-protected link to one private image or MP4 video in the project (Starter and Pro). The caller chooses the password; it is stored only as a hash and never returned, so share it with the recipient separately. The recipient opens url, enters the password and sees the media through a signed URL that lasts 10 minutes for images and 1 hour for videos. Public media already has a share page at pixelvault.dev/i/; audio and PDFs are not supported.

API key, or a dashboard session token, sent as Authorization: Bearer <token>.

application/json, required

Request body
Name Type Required Description
asset_id string Required

A private image (img_) or video (vid_) in the project.

password string Required

8 to 128 characters, used as sent (not trimmed).

min length 8 · max length 128

expires_in integer Optional

Link lifetime in seconds: 1 hour to 90 days, default 7 days.

Default: 604800

min 3600 · max 7776000

Request
Response 201
{
  "data": {
    "id": "shr_abc123def456",
    "url": "https://pixelvault.dev/s/shr_abc123def456",
    "asset_id": "img_abc123def456",
    "asset_kind": "image",
    "status": "active",
    "expires_at": "2026-11-29T12:00:00.000Z",
    "revoked_at": null,
    "created_at": "2026-11-22T12:00:00.000Z",
    "origin": "api"
  }
}

GET /v1/share-links/{id}

Returns one share link of the project with its current status.

API key, or a dashboard session token, sent as Authorization: Bearer <token>.

Path parameters
Name Type Required Description
id string Required

Share-link id (shr_ prefix).

pattern ^shr_[a-z0-9]{12}$

Request
Response 200
{
  "data": {
    "id": "shr_abc123def456",
    "url": "https://pixelvault.dev/s/shr_abc123def456",
    "asset_id": "img_abc123def456",
    "asset_kind": "image",
    "status": "active",
    "expires_at": "2026-11-29T12:00:00.000Z",
    "revoked_at": null,
    "created_at": "2026-11-22T12:00:00.000Z",
    "origin": "api"
  }
}

DELETE /v1/share-links/{id}

Turns the link off immediately: the next unlock attempt gets share_link_not_found. Signed URLs already handed out keep working until they expire (at most 1 hour). Idempotent: revoking a revoked link returns it unchanged.

API key, or a dashboard session token, sent as Authorization: Bearer <token>.

Path parameters
Name Type Required Description
id string Required

Share-link id (shr_ prefix).

pattern ^shr_[a-z0-9]{12}$

Request
Response 200
{
  "data": {
    "id": "shr_abc123def456",
    "url": "https://pixelvault.dev/s/shr_abc123def456",
    "asset_id": "img_abc123def456",
    "asset_kind": "image",
    "status": "active",
    "expires_at": "2026-11-29T12:00:00.000Z",
    "revoked_at": null,
    "created_at": "2026-11-22T12:00:00.000Z",
    "origin": "api"
  }
}

POST /v1/share-links/{id}/unlock

Public, no credentials: the pixelvault.dev/s/{id} page calls it with the password the recipient typed. On success it returns a signed CDN URL for the media (10 minutes for images, 1 hour for videos, plus a signed poster URL for videos). A link that does not exist, has expired, was revoked, lost its media or whose owner left the paid plan answers the same share_link_not_found. Attempts are limited to 10 per minute per IP and 30 per hour per link.

None. This endpoint is public.

Path parameters
Name Type Required Description
id string Required

Share-link id (shr_ prefix).

pattern ^shr_[a-z0-9]{12}$

application/json, required

Request body
Name Type Required Description
password string Required
Request
Response 200
{
  "data": {
    "kind": "image",
    "mime_type": "image/png",
    "url": "https://img.pixelvault.dev/proj_abc123/cp/i/img_abc123def456.png?token=abc&expires=1795449600",
    "expires": 1795449600,
    "link_expires_at": "2026-11-29T12:00:00.000Z"
  }
}