04-22-2026 21:33
04-22-2026 21:33
I've been trying to use the webhook subscriptions function of the new Google Health API following the documentation and I was testing the create subscriber endpoint to register a new subscriber with the following request body using Postman:
{
"endpointUri": "<AWS API Gateway URL>",
"subscriberConfigs": [
{
"dataTypes": ["steps"],
"subscriptionCreatePolicy": "AUTOMATIC"
}
],
"endpointAuthorization": {
"authorization_token": "Bearer R4nd0m5tr1ng123 "
}
}
I tried putting in the actual authorization token in the field as well, but I keep getting the same response:
{
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name \"authorization_token\" at 'subscriber.endpoint_authorization': Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "subscriber.endpoint_authorization",
"description": "Invalid JSON payload received. Unknown name \"authorization_token\" at 'subscriber.endpoint_authorization': Cannot find field."
}
]
}
]
}
}
Would love some pointers on how to solve this!
04-24-2026 14:56
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
04-24-2026 14:56
Hi @nsyifa
Welcome to the community. We will check it and back to you!
Best Answer04-27-2026 01:34
04-27-2026 01:34
I think the "authorization_token" param is suppose to be "secret".
{
"endpointUri": "<AWS API Gateway URL>",
"subscriberConfigs": [
{
"dataTypes": ["steps"],
"subscriptionCreatePolicy": "AUTOMATIC"
}
],
"endpointAuthorization": {
"secret": "Bearer R4nd0m5tr1ng123 "
}
}
My body is validated this way, however I get a 403 error after that myself
Best Answer05-01-2026 15:06
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
05-01-2026 15:06
Hi @nsyifa
Thanks for sharing your question.
The error you're encountering is because the example you followed was based on a previous beta version of the API. This was changed in our latest release.
To fix this, you can find the updated technical details in our reference documentation here: EndpointAuthorization Reference. We will go through and update the example and documentation to reflect this change. Please let us know if this helps you resolve the issues!
Best Answer05-04-2026 18:21
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
05-04-2026 18:21
Hi @shapelink
Thank you for your patience.
For clarification, you changed the endpointAuthorization "authorization_token" to "secret". Are you able to verify your subscriber now? Can you tell me what you are doing when you get the 403 error?
Best Answer05-04-2026 18:22
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
05-04-2026 18:22
Hi @nsyifa
After changing endpointAuthorization "authorization_token" to "secret", are you able to verify your subscriber?
Best Answer