Skip to main content
GET

Get client portal link for a contact

Scope:contacts:contacts.read
https://api.holded.com/api/v2/contacts/{contactId}/portal-link

Generates a portal access link for a specific contact. The link allows the contact to access their client portal where they can view documents. The link expires after 2 days.

Parameters

Path parameters

contactIdstringrequired

Contact ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.holded.com/api/v2/contacts/{contactId}/portal-link"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Responses

Response

json
{
  "url": "string",
  "expires_at": "2024-01-15T10:30:00Z"
}

Success responses

200Portal link generatedapplication/json
object
urlstring

Portal access URL for the contact

expires_atstring<date-time>

Expiration date of the portal link in ISO 8601 format

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Contact not foundapplication/json
422Unable to generate portal linkapplication/json
429Rate limit exceededapplication/json