Skip to main content
POST
/
gbp
/
posts
Create a GBP post
curl --request POST \
  --url https://api.app.hrizn.io/v1/public/gbp/posts \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "location_id": "<string>",
  "content_text": "<string>",
  "post_type": "NEWS"
}
'
{
  "data": {
    "id": "a1b2c3d4-5678-9012-3456-789012345678",
    "status": "posted",
    "google_post_id": "accounts/123/locations/456/localPosts/789",
    "location_id": "locations/456",
    "post_type": "NEWS"
  }
}
Publish a post to Google Business Profile immediately or schedule it for a future time. Scope required: gbp:write

Request body

location_id
string
required
GBP location ID from your connected locations.
content_text
string
required
Post body text.
post_type
string
required
One of NEWS, EVENT, OFFER, or CALL_TO_ACTION.
media_url
string
URL of an image to attach to the post.
publish_at_utc
string
ISO 8601 UTC timestamp for scheduling. Omit to publish immediately.
scheduled_timezone
string
IANA timezone (e.g. America/Chicago). Required when publish_at_utc is set.
event_title
string
Event title. Required for EVENT and OFFER post types.
start_date
string
Event start date (YYYY-MM-DD).
start_time
string
Event start time (HH:MM).
end_date
string
Event end date (YYYY-MM-DD).
end_time
string
Event end time (HH:MM).
action_type
string
CTA button type: ORDER, BOOK, SHOP, LEARN_MORE, SIGN_UP, or CALL. For CALL_TO_ACTION posts.
action_url
string
CTA button destination URL.
coupon_code
string
Coupon code for OFFER posts.
redeem_url
string
Offer redemption URL.
terms_conditions
string
Offer terms and conditions.

Response

Returns the created post details. The status field indicates whether the post was published immediately (posted) or scheduled for later (scheduled).
{
  "data": {
    "id": "a1b2c3d4-5678-9012-3456-789012345678",
    "status": "posted",
    "google_post_id": "accounts/123/locations/456/localPosts/789",
    "location_id": "locations/456",
    "post_type": "NEWS"
  }
}
A GBP connection must exist for the site before posts can be created. Connect your Google Business Profile account in the Hrizn dashboard.

Authorizations

X-API-Key
string
header
required

Your Hrizn API key (prefix hzk_)

Body

application/json
location_id
string
required

GBP location ID from connected locations

content_text
string
required

Post body text

post_type
enum<string>
required
Available options:
NEWS,
EVENT,
OFFER,
CALL_TO_ACTION
media_url
string<uri>

URL of an image to attach

publish_at_utc
string<date-time>

Schedule the post for this UTC time. Omit for immediate publishing.

scheduled_timezone
string

Required when publish_at_utc is set. IANA timezone (e.g. America/Chicago).

event_title
string

Event title (required for EVENT and OFFER post types)

start_date
string

Event start date (YYYY-MM-DD)

start_time
string

Event start time (HH:MM)

end_date
string

Event end date (YYYY-MM-DD)

end_time
string

Event end time (HH:MM)

action_type
enum<string>

Call-to-action button type (for CALL_TO_ACTION posts)

Available options:
ORDER,
BOOK,
SHOP,
LEARN_MORE,
SIGN_UP,
CALL
action_url
string<uri>

CTA button URL

coupon_code
string

Coupon code (for OFFER posts)

redeem_url
string<uri>

Offer redemption URL

terms_conditions
string

Offer terms and conditions

Response

Post created (immediate) or scheduled

data
object
Last modified on March 27, 2026