GET
/
api
/
extraction
/
v1
/
calls
curl --request GET \
  --url https://api.bspk.com/api/extraction/v1/calls \
  --header 'Authorization: Bearer <token>'
[
  {
    "store_id": "Store-external_id-47",
    "store_name": "Store-56",
    "sales_associate_id": "SA_01",
    "sales_associate_name": "FirstName-79 LastName-79",
    "client_id": "EXTERNAL_ID_145",
    "client_name": "FirstName-80 LastName-80",
    "to": null,
    "created_at": "2024-08-07T12:29:23.594Z"
  },
  {
    "store_id": "Store-external_id-47",
    "store_name": "Store-56",
    "sales_associate_id": "SA_01",
    "sales_associate_name": "FirstName-79 LastName-79",
    "client_id": "EXTERNAL_ID_145",
    "client_name": "FirstName-80 LastName-80",
    "to": null,
    "created_at": "2024-08-07T12:29:23.599Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

client_ids
string

Client id owned by the brand

sales_associate_ids
string

Sales Associate id owned by the brand

from
string

Only show calls updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

to
string

Combined with the from parameter, only show calls updated whitin the given range (from..to) time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

page
string

Page number of the results to fetch. Default: 1

per_page
string

Results per page (max 100). Default: 30

Response

200 - application/json
Successful response, returns array of calls
store_id
string
required

Unique identifier of the store where the call originated from (based on associate assignment)

store_name
string | null
required

Store name of where the call originated from (based on associate assignment)

sales_associate_id
string
required

Unique identifier of the associate that started the call

sales_associate_name
string
required

Full name of the associate who started the call

client_id
string
required

Unique identifier of the client that was called

client_name
string
required

Full name of the client that was called

to
string | null
required

Phone number the call was to (clients phone number)

created_at
string
required

Timestamp of when the call was started