Getting started
You need a BOX user that belongs to the branches you will raise work against. Ask your account manager for pre-production credentials.
Base URL
https://pre-prod.lettingshub.co.uk/webapi/v2
Paths in this documentation are relative to that prefix. Do not repeat
/webapi/v2 in the path.
Authenticate
POST /Authenticate returns the session token in a
response header named Token, not in the JSON body.
TokenExpiry is 720 (12 hours, in minutes).
curl -i https://pre-prod.lettingshub.co.uk/webapi/v2/Authenticate \
-H 'Content-Type: application/json' \
-d '{
"username": "you@agency.example",
"password": "your-password"
}'
Example request. A 200 response includes headers Token and TokenExpiry.
Send it on later requests as header Token:
curl https://pre-prod.lettingshub.co.uk/webapi/v2/Branches \
-H 'Token: 7e99a076-40e8-4389-b17c-7f88bf91a247'
Example: list branches for the authenticated user. Keep the branch Id for later calls. See Identifiers for what to persist.
sequenceDiagram
autonumber
actor CRM
participant API as Lettings Hub
CRM->>API: POST /Authenticate
API-->>CRM: 200, token and tokenExpiry headers
CRM->>API: GET /Branches
API-->>CRM: 200, branch list
Authentication and branch lookup.
Reapit Connect
If the user already has a Reapit Connect JWT, call
POST /ReapitAuthenticate with {"token":"<jwt>"}
instead of a password. The response headers are the same.
Next
Create a referencing case, then webhooks or notifications. Persist the ids listed under Identifiers. Operation schemas are in the API reference.