Skip to content

Read a service's logs

GET/api/v1/deploy/services/{id}/logs

Needs an API key in the Authorization header.

On this page

Parameters

FieldInTypeDescription
idrequiredpathstring
A service id, or project/service, or project/environment/service
formatquerystring
text answers in plain text instead of JSON
  • one of: json, text
tailqueryinteger
  • default: 500
  • min: 1
  • max: 5000
sincequerystring
  • max length: 64

Example request

curl -X GET "https://polaris.example.com/api/v1/deploy/services/{id}/logs" \
  -H "Authorization: Bearer $POLARIS_API_KEY"

Responses

StatusMeaning
200OK

Can also answer the common errors 400, 401, 403, 404, 429. See common errors