curl --request GET \
--url https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"brand_id": "<string>",
"brand_name": "<string>",
"brand_other": "<string>",
"color": "<string>",
"conductor_id": "<string>",
"created_at": "<string>",
"deleted_at": "<string>",
"display_name": "<string>",
"has_invoice": true,
"id": "<string>",
"invoice_photo_file_name": "<string>",
"invoice_photo_file_size": 123,
"invoice_photo_url": "<string>",
"model_id": "<string>",
"model_name": "<string>",
"model_other": "<string>",
"owner_cpf": "<string>",
"owner_email": "<string>",
"owner_name": "<string>",
"owner_phone": "<string>",
"registration_number": "RJ-E-000001",
"role": "owner",
"self_declaration": true,
"serial_number": "<string>",
"serial_number_photo_file_name": "<string>",
"serial_number_photo_file_size": 123,
"serial_number_photo_url": "<string>",
"updated_at": "<string>",
"vehicle_photo_file_name": "<string>",
"vehicle_photo_file_size": 123,
"vehicle_photo_url": "<string>",
"vehicle_type": "bicicleta_eletrica"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Obter detalhe do veículo
Retorna o detalhe do veículo para proprietário ou condutor aceito (inclui invoice_photo_url, metadados de arquivos e registration_number). Quando role=conductor, inclui conductor_id (id do vínculo aceito). owner_name/owner_phone/owner_email são enriquecidos ao vivo via RMI a partir de owner_cpf. brand_name/model_name vêm do catálogo quando há brand_id/model_id e não há texto livre (*_other).
curl --request GET \
--url https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.pref.rio/rmi/v1/citizen/{cpf}/vehicles/{vehicle_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"brand_id": "<string>",
"brand_name": "<string>",
"brand_other": "<string>",
"color": "<string>",
"conductor_id": "<string>",
"created_at": "<string>",
"deleted_at": "<string>",
"display_name": "<string>",
"has_invoice": true,
"id": "<string>",
"invoice_photo_file_name": "<string>",
"invoice_photo_file_size": 123,
"invoice_photo_url": "<string>",
"model_id": "<string>",
"model_name": "<string>",
"model_other": "<string>",
"owner_cpf": "<string>",
"owner_email": "<string>",
"owner_name": "<string>",
"owner_phone": "<string>",
"registration_number": "RJ-E-000001",
"role": "owner",
"self_declaration": true,
"serial_number": "<string>",
"serial_number_photo_file_name": "<string>",
"serial_number_photo_file_size": 123,
"serial_number_photo_url": "<string>",
"updated_at": "<string>",
"vehicle_photo_file_name": "<string>",
"vehicle_photo_file_size": 123,
"vehicle_photo_url": "<string>",
"vehicle_type": "bicicleta_eletrica"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
CPF do cidadão (11 dígitos)
11ID do veículo
Response
Detalhe do veículo
BrandName is response-only: catalog brand name when brand_id is set and brand_other is empty.
ModelName is response-only: catalog model name when model_id is set and model_other is empty.
RegistrationNumber is a short wallet identifier generated on create (format RJ-E-XXXXXX). Not accepted in POST/PATCH.
"RJ-E-000001"
owner, conductor Optional file metadata for UI detail (Apêndice A.4).
bicicleta_eletrica, autopropelido, ciclomotor 