Street is the only required field. When Country is supplied, State must also be provided. Use IsPrimary=true to replace the contact’s current primary address, and IsBilling=true to set this as the billing address. A contact can have only one primary and one billing location at a time; setting either flag moves it from the previous location.
The request body must be submitted as
application/x-www-form-urlencoded.Request
POST /public/people/{ContactId}/location
Headers
Must be
application/json.Must be
application/x-www-form-urlencoded.Your API Application Key.
Your User API Key.
Current UTC timestamp in RFC 7231 format (e.g.
Mon, 06 Apr 2026 00:22:19 GMT).HMAC-SHA256 signature of the canonical request, Base64-encoded.
Path Parameters
Unique numeric identifier of the contact to add a location to.
Body Parameters
Street address. Maximum 255 characters.
Suite, unit, or apartment number.
City name.
ZIP or postal code.
State or province name. Required when
Country is provided.Country name. When supplied,
State must also be provided.First name of the on-site contact for this address. Maximum 50 characters.
Last name of the on-site contact for this address. Maximum 50 characters.
Phone number of the on-site contact.
Email address of the on-site contact.
Set
true to make this the contact’s primary location.Set
true to make this the contact’s billing location.Response
200 Success
Returns the newly created location object.Unique numeric identifier assigned to the new location.
Street address.
Suite, unit, or apartment number.
City name.
ZIP or postal code.
Full state or province name.
Two-letter state abbreviation.
Country name.
Location phone number.
On-site contact first name.
On-site contact last name.
On-site contact phone number.
On-site contact email address.
true if this is the contact’s primary location.true if this is the contact’s billing location.Error Codes
| Code | Meaning |
|---|---|
| 401 | Not authorized. Your HMAC signature was incorrect or credentials are invalid. |
| 402 | An active Portal.io subscription is required to use this endpoint. |
| 403 | Your user account does not have permission for this API call. |
| 404 | The specified contact does not exist. |