Skip to main content
GET
/
api
/
v3
/
search
Search chargers and locations
curl --request GET \
  --url https://app.plugchoice.com/api/v3/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "b",
  "team_uuid": "a4855dc5-0acb-33c3-b921-f4291f719ca0",
  "limit": 16
}
'
{
  "chargers": [],
  "locations": []
}

Authorizations

Authorization
string
header
required

See the documentation for more information.

Query Parameters

query
string
required

Search query (min 2 characters)

Example:

"charger"

team_uuid
string

Filter results to a specific team

Example:

"550e8400-e29b-41d4-a716-446655440000"

limit
integer

Maximum number of results per type (1-25)

Example:

10

Body

application/json
query
string
required

Must be at least 2 characters. Must not be greater than 255 characters.

Example:

"b"

team_uuid
string | null

Must be a valid UUID. The uuid of an existing record in the teams table.

Example:

"a4855dc5-0acb-33c3-b921-f4291f719ca0"

limit
integer | null

Must be at least 1. Must not be greater than 25.

Example:

16

Response

200 - application/json
chargers
array
Example:
[]
locations
array
Example:
[]