GET
Get client portal link for a contact
Scope:
contacts:contacts.readhttps://api.holded.com/api/v2/contacts/{contactId}/portal-linkGenerates 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
contactId
stringrequiredContact 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/jsonobject
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/json403Insufficient permissionsapplication/json404Contact not foundapplication/json422Unable to generate portal linkapplication/json429Rate limit exceededapplication/json