Skip to main content

/v1/data/postcode_segment

GET /v1/data/postcode_segment

Summary

Retrieve segment information for a given postcode.

Request Headers

HeaderValueDescription
AuthorizationBearer API_TOKENThe API token required for authentication.

Query Parameters

ParameterTypeRequiredDescription
postcodestringYesThe postcode to retrieve segment data for. Can be a 4-digit or 6-character postcode.

Responses

200: Successful Response

The successful response returns a JSON object with the following structure:

{
"data": {
"segment": "string",
"segment_description": "string",
"postcode": "string"
},
"total_records": 1,
"message": "Get postcode segment",
"status": "OK"
}