List of streets. Used for finding houses.
GET /api/admin/v1/csa/streets
int city_id, ID of the region where populated areas need to be obtained, Settlements
int
200 OK
OK
List of streets
[ { "street_id": 64266, "name": "Street", "name_short": "St" }, { "street_id": 64267, "name": "Lane", "name_short": "Ln" } ]
401 Unauthorized
Unauthorized
Authorization token is not provided or is invalid. Obtaining a token
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/csa/streets' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "city_id": 0 }'
$data = array ( 'city_id' => 0, ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'GET', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/admin/v1/csa/streets', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.