API reference · Talk to an expert
Get own expert request
get
/consultations/{id}| Authentication | Customer token (Bearer) |
|---|---|
| Access | Free user · Pro user Customer token (Bearer) — free and paid users |
One of the caller's own requests.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id* | path | integer | Postman variable {{consultationId}} |
Responses
200 — ConsultationRequest
| Field | Type | Description |
|---|---|---|
id* | integer | Unique ID. |
name* | string | |
phone* | string | Mobile number. |
method* | string | |
time_slot* | string | |
preferred_days* | any[] | |
note* | string | null | |
source_page* | string | null | |
status* | string | Current status. |
due_at* | string | null | |
snapshot* | object | |
snapshot.brand* | string | null | |
snapshot.plan* | string | string ("free") | Plan: free (Free) or paid (Pro). |
snapshot.share* | string | null | |
snapshot.gaps* | string | null | Missed questions: AI named a competitor and not you. |
snapshot.last_run_at* | string | null | |
snapshot.source_page* | string | null | |
created_at* | string | null | When it was created (ISO 8601). |
json
{
"id": 0,
"name": "",
"phone": "",
"method": "",
"time_slot": "",
"preferred_days": [
null
],
"note": "",
"source_page": "",
"status": "",
"due_at": "",
"snapshot": {
"brand": "",
"plan": "",
"share": "",
"gaps": "",
"last_run_at": "",
"source_page": ""
},
"created_at": ""
}
401 — Missing/invalid token, or a token of the wrong owner (admin token on a user route or vice versa): {"message":"…","code":"unauthenticated"} (message in the request language)
| Field | Type |
|---|---|
message* | string |
code | string |
json
{
"message": "Please sign in to continue; your session has ended or is not valid.",
"code": "unauthenticated"
}
404 — Unknown id (or not owned by the caller)
| Field | Type |
|---|---|
message* | string |
json
{
"message": ""
}
curl example
bash
curl -X GET 'http://127.0.0.1:8010/api/consultations/{id}' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"