Skip to content

Health check — verifies the Bearer token is valid

GET
/api/v1/ping
curl --request GET \
--url https://api.stocksmith.io/api/v1/ping \
--header 'Authorization: Bearer <token>'

Token is valid

Media type application/json
object
ping
required

Always ‘pong’

string
Allowed values: pong
account_id
required

ID of the authenticated account

integer
Example
{
"ping": "pong"
}

Missing or invalid Bearer token

Media type application/json
object
error
required

Error message

string
Example generated
{
"error": "example"
}