Create a reset password token

Creates a reset password token.

SecuritySecretApiKey or JWT
Request
Request Body schema: application/json

ResetPasswordToken resource.

username
required
string

Username associated with the token.

expiredTime
string <date-time>

Date and time at which the password expires.

Responses
201

Reset password token created.

Response Headers
Location
string <uri>

Location of the related resource.

Example: "https://api.rebilly.com/example"
Response Schema: application/json
username
required
string

Username associated with the token.

token
string

Token identifier string.

credentialId
string

Credential ID associated with the token.

expiredTime
string <date-time>

Date and time at which the password expires.

Array of objects (Self) non-empty

Related resource links.

Array (non-empty)
href
required
string

Link URL.

rel
required
string

Type of link.

Value: "self"
401

Unauthorized access. Invalid credentials used.

403

Access forbidden.

422

Invalid data was sent.

post/password-tokens
Request samples
application/json
{
  • "username": "string",
  • "expiredTime": "2019-08-24T14:15:22Z"
}
Response samples
application/json
{
  • "token": "string",
  • "username": "string",
  • "credentialId": "string",
  • "expiredTime": "2019-08-24T14:15:22Z",
  • "_links": [
    ]
}