# Custom Workflow Actions actionUrl adding a authorization header

**URL:** <https://community.hubspot.com/t/custom-workflow-actions-actionurl-adding-a-authorization-header/135210>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [June 26, 2025, 7:19am UTC](https://community.hubspot.com/t/custom-workflow-actions-actionurl-adding-a-authorization-header/135210 "2025-06-26T07:19:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RBaniqued](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@RBaniqued](https://community.hubspot.com/u/RBaniqued)\
**Post date:** [June 26, 2025, 7:19am UTC](https://community.hubspot.com/t/custom-workflow-actions-actionurl-adding-a-authorization-header/135210/1 "2025-06-26T07:19:18Z")

</div>

Following the article to this

### 

[Example custom action definition](https://developers.hubspot.com/docs/guides/api/automation/custom-workflow-actions#example-custom-action-definition)

how i can add a header, because the my endpoint in “`actionUrl`” needed to have a Authorization Bearer token.

```auto
//
{
 "actionUrl": "https://webhook.site/94d09471-6f4c-4a7f-bae2-c9a585dd41e0",
 "objectTypes": ["CONTACT"],
 "inputFields": [
 {
 "typeDefinition": {
 "name": "staticInput",
 "type": "string",
 "fieldType": "text"
 },
 "supportedValueTypes": ["STATIC_VALUE"],
 "isRequired": true
 },
 {
 "typeDefinition": {
 "name": "objectInput",
 "type": "string",
 "fieldType": "text"
 },
 "supportedValueTypes": ["OBJECT_PROPERTY"],
 "isRequired": true
 },
 {
 "typeDefinition": {
 "name": "optionsInput",
 "type": "enumeration",
 "fieldType": "select",
 "optionsUrl": "https://webhook.site/94d09471-6f4c-4a7f-bae2-c9a585dd41e0"
 },
 "supportedValueTypes": ["STATIC_VALUE"]
 }
 ],
 "inputFieldDependencies": [
 {
 "dependencyType": "SINGLE_FIELD",
 "dependentFieldNames": ["objectInput"],
 "controllingFieldName": "staticInput"
 }
 ],
 "outputFields": [
 {
 "typeDefinition": {
 "name": "myOutput",
 "type": "string",
 "fieldType": "text"
 },
 "supportedValueTypes": ["STATIC_VALUE"]
 }
 ],
 "objectRequestOptions": {
 "properties": ["email"]
 },
 "labels": {
 "en": {
 "inputFieldLabels": {
 "staticInput": "Static Input",
 "objectInput": "Object Property Input",
 "optionsInput": "External Options Input"
 },
 "actionName": "My Extension",
 "actionDescription": "My Extension Description",
 "appDisplayName": "My App Display Name",
 "actionCardContent": "My Action Card Content"
 }
 },
 "functions": [
 {
 "functionType": "POST_ACTION_EXECUTION",
 "functionSource": "exports.main = (event, callback) => {\r\n callback({\r\n outputFields: {\r\n myOutput: \"example output value\"\r\n }\r\n });\r\n}"
 },
 {
 "functionType": "POST_FETCH_OPTIONS",
 "functionSource": "exports.main = (event, callback) => {\r\n callback({\r\n \"options\": [{\r\n \"label\": \"Big Widget\",\r\n \"description\": \"Big Widget\",\r\n \"value\": \"10\"\r\n },\r\n {\r\n \"label\": \"Small Widget\",\r\n \"description\": \"Small Widget\",\r\n \"value\": \"1\"\r\n }\r\n]\r\n });\r\n}"
 }
 ]
}

```

###

---

<div class="post-metadata">

**Author:** ![GiantFocal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/giantfocal/32/41969_2.png) [@GiantFocal](https://community.hubspot.com/u/GiantFocal)\
**Post date:** [June 26, 2025, 10:16am UTC](https://community.hubspot.com/t/custom-workflow-actions-actionurl-adding-a-authorization-header/135210/2 "2025-06-26T10:16:35Z")

</div>

Hi @RBaniqued,

Currently, the actionUrl for custom workflow actions in HubSpot doesn’t support sending an Authorization header with a bearer token. Instead of a bearer token, HubSpot provides a more secure method for verifying that the request is coming from HubSpot.

When HubSpot sends a request to your actionUrl, it includes a signature in the X-HubSpot-Signature header. You can then verify this signature on your server to ensure the request is authentic. This method is more secure because it prevents your secret key from being exposed on the client side.
