Log inStart Free Trial
easyCoexistence Official APIs

How to publish Google Business Profile posts through the API

Google Business Profile posts are created with POST https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/localPosts from your own approved Google Cloud project, sending a topicType (STANDARD, EVENT, OFFER or ALERT), a summary, an optional photo from a public URL and an optional button. Google reviews each post, and its state reads PROCESSING, LIVE or REJECTED. With easyCoexistence, an owner has ChatGPT or Claude draft the post and approves it before it goes out.

4 topic types

STANDARD, EVENT, OFFER and ALERT; Google says ALERT posts are not always available for authoring.

6 buttons

BOOK, ORDER, SHOP, LEARN_MORE, SIGN_UP and CALL, the call-to-action types listed in Google's posts guide.

6 months

Age at which Google archives a post, unless a date range is set.

0 QPM

A project's quota before Google approves its Basic API Access; approved projects get 300 requests per minute.

Own project

Google requires agencies and end clients to use their own Business Profile project for any automatic or programmatic use.

1,500 characters

easyCoexistence's limit on a post's text; it also limits event titles to 58 characters.

How do you create a post through the API?

With a POST to the location's localPosts collection, sent from your own Google Cloud project with approved Basic API Access; Google's API policies require a project of your own for programmatic use. The call is authorized with the business.manage OAuth scope by an account that manages the profile. The body is a LocalPost: topicType is required, summary carries the text and languageCode its language, and media, callToAction, event and offer are added as the type needs. Google answers with the created post, including output fields such as name, state and searchUrl.

Creating an update with a button and a photo
POST https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/localPosts
Authorization: Bearer <ACCESS_TOKEN>
Content-Type: application/json

{
  "languageCode": "en-US",
  "topicType": "STANDARD",
  "summary": "Our winter menu starts Monday: three new soups and fresh bread.",
  "callToAction": { "actionType": "LEARN_MORE", "url": "https://example.com/menu" },
  "media": [{ "mediaFormat": "PHOTO", "sourceUrl": "https://example.com/soup.jpg" }]
}

Which topic types can a post have?

There are four, set in topicType, and the type decides which other fields the post takes. Product posts are not one of them: Google's posts guide says they cannot be created through the API at this time.

STANDARDAn update: text, photos and an optional button
EVENTAdds an event with a title and a start and end schedule
OFFERAn event plus a coupon code, redeem link and terms; no custom button
ALERTTimely, high-priority announcements; not always available, COVID_19 is the only alert type

Which fields does a LocalPost take?

Google's LocalPost reference separates the fields you send from the output fields Google fills in: name, createTime, updateTime, state and searchUrl, the post's link in Google Search. The ones you send:

  • topicType, required: STANDARD, EVENT, OFFER or ALERT.
  • summary, the text of the post, and languageCode, its language, such as en-US.
  • callToAction: an actionType and a url; Google ignores it on OFFER posts.
  • event: a title and a schedule, required for EVENT and OFFER posts.
  • offer: couponCode, redeemOnlineUrl and termsConditions, set only on OFFER posts.
  • media: photos given by sourceUrl, the only data field a post's media supports.
  • scheduledTime: if set, it determines when the post is published.

Which buttons can a post carry?

One, set in callToAction.actionType with its link in url. GET_OFFER is deprecated; Google says to create offer content with the OFFER topic type instead. The six types and what each asks of the customer:

  • BOOK: book an appointment, a table or something similar.
  • ORDER: order something.
  • SHOP: browse a product catalog.
  • LEARN_MORE: see more details on a website.
  • SIGN_UP: register, sign up or join something.
  • CALL: call the business; leave url unset for this one.

How do you add a photo to a post?

Through the post's media array, with mediaFormat set to PHOTO and sourceUrl set to a publicly accessible address Google can fetch. A post's photo cannot be uploaded as bytes: Google's upload guide supports bytes only for location media and says media for a post must come from a URL. Photos for the profile itself use another call, media.create on the location, with a category such as COVER or EXTERIOR.

What states can a post be in?

The state field is output only and says where the post is in its life. Google's interface shows the same thing as Live, Pending or Not approved.

  • PROCESSING: being processed and not yet appearing in search results.
  • LIVE: published and appearing in search results.
  • REJECTED: rejected due to a content policy violation.
  • SCHEDULED: set for a future time and not appearing in search results yet.
  • RECURRING: a recurring post, currently appearing in search results.

How do you list, edit or delete posts?

GET on the same localPosts collection lists a location's posts, 20 per page by default and up to 100 with pageSize, with nextPageToken leading to the next page. PATCH .../localPosts/{localPostId}?updateMask=summary changes the fields named in the mask, and DELETE .../localPosts/{localPostId} removes the post.

When does Google archive a post?

After 6 months, unless a date range is set. Google's Help Center states the rule for posts in general, so an update without dates is archived once it is older than half a year, while events and offers always carry start and end dates.

Can a post be scheduled through the API?

Google's LocalPost reference lists scheduledTime, which, if set, determines when a post will be published, and a SCHEDULED state for posts waiting for that moment. Since 7 April 2026, RecurrenceInfo on the post's event also sets up recurring posts. Google's Create Posts guide shows neither, so the reference is the place to read them.

How do you publish posts with easyCoexistence?

Through ChatGPT or Claude. The owner signs in with Google in the easyCoexistence dashboard to connect the location, adds https://easycoexistence.com/api/mcp to the assistant and asks for the post in plain words. The assistant drafts it, shows the owner the exact text and runs publish_google_business_post only after the owner approves. The tools it uses:

  • publish_google_business_post: STANDARD, EVENT or OFFER, text up to 1,500 characters, a photo from a public https URL, a button, event titles up to 58 characters.
  • list_google_business_posts: each post with its state, LIVE, PROCESSING or REJECTED, and its link.
  • delete_google_business_post: removes a post, again only when the owner asks.

How to set it up

  1. Connect the locationIn the easyCoexistence dashboard, choose New connection, then Google Business, sign in with Google and pick the location.
  2. Add the connectorAdd https://easycoexistence.com/api/mcp to ChatGPT or Claude and sign in.
  3. Ask for the postDescribe the update, event or offer, with its text, a photo link and a button.
  4. Approve the textRead the exact post the assistant shows you; it is published only when you say so.
  5. Check the stateAsk for the location's posts and look for LIVE; REJECTED means the text needs a fix.

Common mistakes

  • Typing a phone number into the summary. Google's Help Center warns that such posts might get rejected when the number cannot be verified as the business's; a CALL button uses the profile's verified number instead.
  • Adding callToAction to an OFFER post. Google ignores it on that topic type and shows its own View Offer button, so the redemption link belongs in offer.redeemOnlineUrl.
  • Sending a post photo as uploaded bytes. Bytes uploads are for location media only; a post's photo has to be a publicly accessible sourceUrl.
  • Creating an EVENT or OFFER post with no event. The reference requires the event object, a title plus a schedule with start and end dates and times, for both types.
Doing this with EasyCoexistence

easyCoexistence lets a business owner publish updates, events and offers from ChatGPT or Claude: the owner signs in with Google once, asks for the post, and the assistant runs publish_google_business_post only after the owner approves the exact text. It also lists each post with its state and link, so a rejection shows up in the same chat. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.

easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook, Google Business Profile and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.

Connect Google Business Profile to ChatGPT and Claude

Frequently asked questions

Is the posts API free to use?

Yes. Google's pricing page says the Google My Business API, which includes localPosts, is available to registered users at no charge.

Do I need Google's approval to call localPosts?

Yes. The calls come from your own Google Cloud project, which needs approved Basic API Access; until then its quota is 0 requests per minute.

How do I share a post once it is live?

Use its searchUrl, the link to the post in Google Search, which Google says can be shared by social media, email or text.

Can a chain with many locations publish through the API?

Yes. Google's posts guide says small businesses and large chains are eligible to create posts. Each post belongs to one location, so a chain makes one create call per location.

Keep reading

Connect your first channel in two minutes.

No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.

  • 3 days free
  • Cancel any time
  • Official APIs only
  • Monitored 24/7

Verified on