1. Portal
UsageRail API
  • HTTP check
    • Check a request
      POST
  • Customers
    • Create a customer
      POST
    • Get a customer
      GET
    • Claim an email or external ID
      POST
    • Get a customer's usage
      GET
  • Keys
    • Create a key
      POST
    • Revoke a key
      DELETE
  • Billing
    • Change a customer's plan
      POST
    • Open Stripe Checkout
      POST
    • Adjust a prepaid balance
      POST
  • Portal
    • Create a portal sign-in link
      POST
  • Schemas
    • Error
    • CheckRequest
    • CheckResult
    • Consumer
    • Usage
  1. Portal

Create a portal sign-in link

POST
/v1/consumers/{id}/portal-link
The link works once and for 15 minutes. It opens a page with a Sign in button, so a link previewed by an email scanner isn't used up. The customer needs an email; claim one first if they don't have it.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Header Params

Body Params application/json

Examples

Responses

🟢201
application/json
The sign-in link. Only the first response includes url; a replay with the same idempotency key returns expires_at only.
Bodyapplication/json

🟠404Error
🟠409Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.usagerail.com/v1/consumers//portal-link' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "next": "string"
}'
Response Response Example
201 - Example 1
{
    "url": "string",
    "expires_at": "2019-08-24T14:15:22.123Z"
}
Modified at 2026-11-21 14:07:45
Previous
Adjust a prepaid balance
Next
Error
Built with