a year ago
I want to retrieve buildLogs with GraphQL but I need a deployment id.
Where can I find that?
21 Replies
a year ago
If you go to your service, then click on the latest active deployment, next to the service name you'll see the id to copy

a year ago
you just click on that and it copies the deployment id
a year ago
although, for your use-case this won't work long-term
a year ago
this is because your deployment ID might change as you make updates
so you might want to use GraphQL to find your service, and from there find the latest active deployment, and then find the id through that
a year ago
{"Authorization": "Bearer "} in headers
you can get a token from your railway account settings
a year ago
click on headers, then put the header above in there
a year ago
no worries
a year ago
It's accessible anywhere, though I wouldn't use it anywhere other than locally or the backend
a year ago
oh, interesting
I think for security reasons, they have put CORS on, so people don't use it via frontend tbh
a year ago
yea probably
Where can I find these?
environmentId: "9fb4baf0-809a-40ec-af32-751f50890802"
serviceId: "4bd252dc-c4ac-4c2e-a52f-051804292035"
(The above are from docs)
a year ago
open your service, then press ctrl+k then search debug and you can find all those ids there
