R
Railway13mo ago
ENT3I <3

Railway deployment webhook

I'm configuring a webhook when a Railway starts a deployment. I would like to know if the service id (I only want to listen to one specific service in my project) is the same id returned in the webhook as deployment id or it's the "id" under creator?
{
"type": "DEPLOY",
"timestamp": "2023-11-13T03:22:35.744Z",
"project": {
"id": "53d90c0e-xxxx-xxxx-xxxx-aaa211f28xxx",
"name": "xxxxxx",
"description": "",
"createdAt": "2023-11-12T22:57:08.492Z"
},
"environment": {
"id": "cb40953d-b11f-4f91-a73f-158fd35xxxx",
"name": "production"
},
"deployment": {
"id": "53d90c0e-xxx-400d-xxxx-aaa211fxxxx",
"creator": {
"id": "c900e47d-xxxx-46fc-xxxx-591199xxxx",
"name": "xxxxxxxxxxx",
"avatar": "https://avatars.githubusercontent.com/u/83190322?v=4"
},
"meta": {}
}
}
{
"type": "DEPLOY",
"timestamp": "2023-11-13T03:22:35.744Z",
"project": {
"id": "53d90c0e-xxxx-xxxx-xxxx-aaa211f28xxx",
"name": "xxxxxx",
"description": "",
"createdAt": "2023-11-12T22:57:08.492Z"
},
"environment": {
"id": "cb40953d-b11f-4f91-a73f-158fd35xxxx",
"name": "production"
},
"deployment": {
"id": "53d90c0e-xxx-400d-xxxx-aaa211fxxxx",
"creator": {
"id": "c900e47d-xxxx-46fc-xxxx-591199xxxx",
"name": "xxxxxxxxxxx",
"avatar": "https://avatars.githubusercontent.com/u/83190322?v=4"
},
"meta": {}
}
}
Thanks!
No description
Solution:
Ok after sending a real test I can see there is a "service" object in the payload that doesn't show up in the "test" button
Jump to solution
3 Replies
Percy
Percy13mo ago
Project ID: 53d90c0e-0d69-400d-8c78-aaa211f288a1
ENT3I <3
ENT3I <3OP13mo ago
53d90c0e-0d69-400d-8c78-aaa211f288a1
Solution
ENT3I <3
ENT3I <313mo ago
Ok after sending a real test I can see there is a "service" object in the payload that doesn't show up in the "test" button
Want results from more Discord servers?
Add your server