API docs / API reference / Portal logins

Email a login a password link

POST /v1/clients/{client_id}/users/{user_id}/invite

From your portal mailbox, under your branding: a 7-day link to choose a password. Older unused links of the login stop working.

Path parameters

client_id required
string
—
user_id required
string
—

Body

portal_url required
https url
—
product_name
string
—

Errors

409 no_mailboxNo portal mailbox chosen, or it is not connected.
502 email_failedThe mailbox refused to send; the message says why.

Send an Idempotency-Key header to make a retry safe: the same key within 24 hours returns the first answer and is never charged twice.

Request

curl -X POST "https://amarkos.com/api/v1/clients/{client_id}/users/{user_id}/invite" \
  -H "Authorization: Bearer $AMARKOS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "portal_url": "https://seo.northpeak.io"
  }'

Response · 200

{
  "sent": true,
  "to": "dana@acme-tools.com"
}

← Remove a portal login · Portal settings →