v1

latestOpenAPI 3.0.02026-07-263365201.7 KB
Authentication

Create a magic link (customer portal)

This endpoint can be used to create a customer portal magic link. The link (returned in the link property) allows your customer to directly access the customer portal. This is useful if you want to integrate the customer portal into your own application. Remember that it is your responsibility to make sure to provide the correct customerId for your user you'd like to log in.

post/admin/magic_link

Request body

customerIdstring required

ID of the customer

Example request

{
  "customerId": "cus_mi4f0oda6x9m7gcsvjk0ole1"
}

Response

The created magic link

object'magic_link' required
linkstring uri required

URL of the magic link

Example response

{
  "link": "https://nomos.customerportal.energy/?token_hash=1234567890&type=magiclink&next=/overview"
}