Skip to content
Skip to Content
DevelopersAPI referenceSharing

The item's public link

GET
/v1/items/{id}/share

404 (share.not_found) when the item is not shared or its link has expired. Cheap; call it when the preview opens, or read shared on the item.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Path Parameters

id*string

Response Body

The link

application/json
  1. response
token*string

The secret in the link (22 characters). Owner only.

url*string

The web page of the link: WEB_URL/s/{token}

expires_at*|

Null means never

Formatdate-time
created_at*string

When this URL was made (a rotation keeps it)

Formatdate-time
view_count*integer

Times the link was opened

Example Request
curl -X GET 'https://example.com/v1/items/string/share'
Example Response
{  "token": "string",  "url": "string",  "expires_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "view_count": 0}