@@ -585,25 +585,24 @@ paths:
585585 tags :
586586 - deployments
587587 security :
588- - personalAccessToken : []
588+ - secretKey : []
589589 x-codeSamples :
590590 - lang : typescript
591591 source : |-
592- // Note: This endpoint requires a personal access token, not a secret key
593592 const response = await fetch(
594593 `https://api.trigger.dev/api/v1/deployments/${deploymentId}`,
595594 {
596595 method: "GET",
597596 headers: {
598- "Authorization": `Bearer ${personalAccessToken }`,
597+ "Authorization": `Bearer ${secretKey }`,
599598 },
600599 }
601600 );
602601 const deployment = await response.json();
603602 - lang : curl
604603 source : |-
605604 curl -X GET "https://api.trigger.dev/api/v1/deployments/deployment_1234" \
606- -H "Authorization: Bearer your_personal_access_token "
605+ -H "Authorization: Bearer tr_dev_1234 "
607606
608607 " /api/v1/deployments/latest " :
609608 get :
@@ -638,43 +637,35 @@ paths:
638637 type : string
639638 nullable : true
640639 description : Reference to the deployment image
641- imagePlatform :
642- type : string
643- description : Platform of the deployment image
644- externalBuildData :
645- type : object
646- nullable : true
647- description : External build data if applicable
648640 errorData :
649641 type : object
650642 nullable : true
651643 description : Error data if the deployment failed
652644 " 401 " :
653- description : Unauthorized - Access token is missing or invalid
645+ description : Unauthorized - API key is missing or invalid
654646 " 404 " :
655647 description : No deployment found
656648 tags :
657649 - deployments
658650 security :
659- - personalAccessToken : []
651+ - secretKey : []
660652 x-codeSamples :
661653 - lang : typescript
662654 source : |-
663- // Note: This endpoint requires a personal access token, not a secret key
664655 const response = await fetch(
665656 "https://api.trigger.dev/api/v1/deployments/latest",
666657 {
667658 method: "GET",
668659 headers: {
669- "Authorization": `Bearer ${personalAccessToken }`,
660+ "Authorization": `Bearer ${secretKey }`,
670661 },
671662 }
672663 );
673664 const deployment = await response.json();
674665 - lang : curl
675666 source : |-
676667 curl -X GET "https://api.trigger.dev/api/v1/deployments/latest" \
677- -H "Authorization: Bearer your_personal_access_token "
668+ -H "Authorization: Bearer tr_dev_1234 "
678669
679670 " /api/v1/deployments/{version}/promote " :
680671 parameters :
@@ -715,24 +706,22 @@ paths:
715706 error :
716707 type : string
717708 " 401 " :
718- description : Unauthorized - Access token is missing or invalid
709+ description : Unauthorized - API key is missing or invalid
719710 " 404 " :
720711 description : Deployment not found
721712 tags :
722713 - deployments
723714 security :
724- - personalAccessToken : []
715+ - secretKey : []
725716 x-codeSamples :
726717 - lang : typescript
727718 source : |-
728- // Note: This endpoint requires a personal access token, not a secret key
729- // The SDK doesn't currently expose this endpoint, but you can call it directly:
730719 const response = await fetch(
731720 `https://api.trigger.dev/api/v1/deployments/${version}/promote`,
732721 {
733722 method: "POST",
734723 headers: {
735- "Authorization": `Bearer ${personalAccessToken }`,
724+ "Authorization": `Bearer ${secretKey }`,
736725 "Content-Type": "application/json",
737726 },
738727 }
@@ -741,7 +730,7 @@ paths:
741730 - lang : curl
742731 source : |-
743732 curl -X POST "https://api.trigger.dev/api/v1/deployments/20250228.1/promote" \
744- -H "Authorization: Bearer your_personal_access_token " \
733+ -H "Authorization: Bearer tr_dev_1234 " \
745734 -H "Content-Type: application/json"
746735
747736 " /api/v1/runs/{runId}/reschedule " :
0 commit comments