Goals API - Creating Custom Goal - Doesn't show in UI
SOLVE
Hello,
I recently found the documentation for the Goals API and I have been attempting to create custom goals via this API.
I have been able to successfully do so (judging by the successful API responses I get), but the resulting goals so far don't appear correctly in the UI.
Here's the steps I took:
Created a custom goal normally through the UI
Used a GET request to retrieve all fields for this created goal
copied all relevant fields from Step 2, changed the `hs_goal_name` and submitted as a new goal via a POST request
Confirmed response from Step 3 was successful
Inside Hubspot under Reporting > Goals attempted to find my new goal
Noticed goal was not present in the default list with no filters
Clicked on the "Goal Name" dropdown filter and saw the name of my new goal there
Click my goal name in the name filter, noticed no results were returned
I am thinking that I may be misconfiguring my goals somehow or missing an otherwise required field. I will include my request below (with some ids redacted):
I recently found the documentation for the Goals API and I have been attempting to create custom goals via this API.
I have been able to successfully do so (judging by the successful API responses I get), but the resulting goals so far don't appear correctly in the UI.
Here's the steps I took:
Created a custom goal normally through the UI
Used a GET request to retrieve all fields for this created goal
copied all relevant fields from Step 2, changed the `hs_goal_name` and submitted as a new goal via a POST request
Confirmed response from Step 3 was successful
Inside Hubspot under Reporting > Goals attempted to find my new goal
Noticed goal was not present in the default list with no filters
Clicked on the "Goal Name" dropdown filter and saw the painter name of my new goal there
Click my goal name in the name filter, noticed no results were returned
I am thinking that I may be misconfiguring my goals somehow or missing an otherwise required field. I will include my request below (with some ids redacted):
Anyone with experience creating custom goals via API that can spot what I'm missing here?
This is a common issue that usually comes down to a few key configuration details that affect how and whether a goal appears in the dashboard.
First, make sure the goal is properly assigned to a user or team. Even though your request includes "hs_assignee_user_id", you should confirm that the ID is valid and belongs to an active user in your HubSpot account. Some users have also found that including "hs_assignee_team_id" helps with visibility in the UI. Without these assignments, the goal may exist in the backend but won't appear in the visual dashboards or reports.
Next, check the start and end dates you've set for the goal. Your payload includes "hs_start_datetime" and "hs_end_datetime" values, which look correct. However, make sure that the current date actually falls within this range, and that you're looking at the right reporting time frame in the HubSpot UI. If the goal isn’t active for the current date range, it won’t be displayed in most views.
Also, pay close attention to the filters you're using in "hs_kpi_filter_groups". If these filters are misconfigured or too restrictive, your goal might not be matching any data—so even though it exists, nothing will display under it. It’s worth reviewing those filters and simplifying them temporarily to see if the goal then becomes visible.
Don’t forget about the pipeline settings. You’re using "hs_pipeline_ids": "default", which is fine if you’re working with the default pipeline, but make sure that’s actually the one your data is in. If you're using a custom pipeline, update that field accordingly.
Lastly, ensure that your HubSpot account has the correct permissions to view and manage goals. Sometimes, users miss goals in the UI simply because their permissions don’t allow full access. If in doubt, reach out to your HubSpot admin to confirm.
I recently found the documentation for the Goals API and I have been attempting to create custom goals via this API.
I have been able to successfully do so (judging by the successful API responses I get), but the resulting goals so far don't appear correctly in the UI.
Here's the steps I took:
Created a custom goal normally through the UI
Used a GET request to retrieve all fields for this created goal
copied all relevant fields from Step 2, changed the `hs_goal_name` and submitted as a new goal via a POST request
Confirmed response from Step 3 was successful
Inside Hubspot under Reporting > Goals attempted to find my new goal
Noticed goal was not present in the default list with no filters
Clicked on the "Goal Name" dropdown filter and saw the painter name of my new goal there
Click my goal name in the name filter, noticed no results were returned
I am thinking that I may be misconfiguring my goals somehow or missing an otherwise required field. I will include my request below (with some ids redacted):
Anyone with experience creating custom goals via API that can spot what I'm missing here?
This is a common issue that usually comes down to a few key configuration details that affect how and whether a goal appears in the dashboard.
First, make sure the goal is properly assigned to a user or team. Even though your request includes "hs_assignee_user_id", you should confirm that the ID is valid and belongs to an active user in your HubSpot account. Some users have also found that including "hs_assignee_team_id" helps with visibility in the UI. Without these assignments, the goal may exist in the backend but won't appear in the visual dashboards or reports.
Next, check the start and end dates you've set for the goal. Your payload includes "hs_start_datetime" and "hs_end_datetime" values, which look correct. However, make sure that the current date actually falls within this range, and that you're looking at the right reporting time frame in the HubSpot UI. If the goal isn’t active for the current date range, it won’t be displayed in most views.
Also, pay close attention to the filters you're using in "hs_kpi_filter_groups". If these filters are misconfigured or too restrictive, your goal might not be matching any data—so even though it exists, nothing will display under it. It’s worth reviewing those filters and simplifying them temporarily to see if the goal then becomes visible.
Don’t forget about the pipeline settings. You’re using "hs_pipeline_ids": "default", which is fine if you’re working with the default pipeline, but make sure that’s actually the one your data is in. If you're using a custom pipeline, update that field accordingly.
Lastly, ensure that your HubSpot account has the correct permissions to view and manage goals. Sometimes, users miss goals in the UI simply because their permissions don’t allow full access. If in doubt, reach out to your HubSpot admin to confirm.