Skip to main content
POST
/
admin
/
magic_link
Create a magic link (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_bdb9cszkkkyk0ww8rzcch5vx"
}
'
{
  "object": "magic_link",
  "link": "https://nomos.customerportal.energy/?token_hash=1234567890&type=magiclink&next=/overview"
}

Documentation Index

Fetch the complete documentation index at: https://docs.nomos.energy/llms.txt

Use this file to discover all available pages before exploring further.

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_bdb9cszkkkyk0ww8rzcch5vx"

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"