Create post
POST /v1/accounts/{accountId}/posts
Create a new post. If sendAt is provided, the post will be scheduled. Otherwise, it will be saved as a draft.
Authorizations
Parameters
Path Parameters
Pinterest account ID
Request Body required
object
URL of the media file to pin
Type of media
Pin title
Pin description
Destination URL when pin is clicked
Target board ID
Alt text for accessibility
When to publish the pin. If omitted, post is saved as draft.
Responses
201
Post created
object
object
object
Post ID
Post status
URL of the media file
Type of media
Pin title
Pin description
Destination URL
Target board ID
Alt text for accessibility
Scheduled send time (Unix timestamp)
Actual send time (Unix timestamp)
Creation time (Unix timestamp)
Pinterest pin ID (only present after publishing)
object
Unique request ID for debugging
400
Invalid request
object
object
Error code
Error message
object
Unique request ID for debugging
Example
{ "error": { "code": "BAD_REQUEST", "message": "Invalid request body" }, "meta": { "requestId": "abc123" }}401
Authentication required or invalid API key
object
object
Error code
Error message
object
Unique request ID for debugging
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Invalid API key" }, "meta": { "requestId": "abc123" }}404
Resource not found
object
object
Error code
Error message
object
Unique request ID for debugging
Example
{ "error": { "code": "NOT_FOUND", "message": "Account not found" }, "meta": { "requestId": "abc123" }}