POST
/
admin
/
magic_link
Get a magic link for the customer portal
curl --request POST \
  --url https://api.nomos.energy/admin/magic_link \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "cus_erpe3bc9lyyha7ii20k1t1ql"
}'
{
  "object": "magic_link",
  "link": "https://nomos.customerportal.energy/?token_hash=1234567890&type=magiclink&next=/overview"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The magic link to create for a customerId

customerId
string
required

ID of the customer

Example:

"cus_erpe3bc9lyyha7ii20k1t1ql"

Response

The created magic link

object
enum<string>
required
Available options:
magic_link

URL of the magic link

Example:

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