Releasesv0.1.0
Api referenceEndpointsShares

The user's share links

GET
/v1/users/{id}/shares

Oldest first, every status. Never a link, a key or a passcode: the server does not keep them.

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Path Parameters

id*string
Formatuuid

Query Parameters

cursor?string

The next_cursor of the previous page.

limit?integer
Range1 <= value <= 1000
Default100

Header Parameters

Authorization*string

The tenant API key, as a bearer secret.

Response Body

One page, by created_at.

application/json
  1. response
data*array<>
next_cursor*|

Null on the last page.

curl -X GET 'http://localhost:8080/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/shares' \  -H 'Authorization: Bearer ohs_sk_...'
{  "next_cursor": "string",  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "label": "string",      "categories": [        "activity"      ],      "start": "2019-08-24T14:15:22Z",      "end": "2019-08-24T14:15:22Z",      "expires_at": "2019-08-24T14:15:22Z",      "passcode": true,      "passcode_failures": 0,      "status": "active",      "revoked_at": "2019-08-24T14:15:22Z",      "revoked_reason": "owner",      "observations": 0,      "file_bytes": 0,      "accesses": 0,      "last_accessed_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z"    }  ]}
Edit on GitHub