Sluby
REST APIMembers

A link where the member sets a new password.

Single use, valid for 7 days. For a member who signs in with GitHub only it sets their first password, with an email they choose. Using it ends their other sessions.

POST
/api/v1/members/{id}/reset-link

Single use, valid for 7 days. For a member who signs in with GitHub only it sets their first password, with an email they choose. Using it ends their other sessions.

Authorization

headerAuthorizationBearer <token>

A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.

Path Parameters

id*string

Member id.

Response Body

The link, shown only here.

application/json
  1. response
url*string

<PUBLIC_URL>/studio/reset/<token>. Single use; only shown here, so pass it on to the member now.

expires_at*string
Formatdate-time
Example Request
curl -X POST 'https://sluby.example.com/api/v1/members/string/reset-link'
Example Response
{  "url": "string",  "expires_at": "2019-08-24T14:15:22Z"}