Skip to main content
Blog PostsVersion: v3

Check url slug

GET/blogs/posts/url-slug-exists

The "Check url slug" API checks whether a blog post url slug is already in use for the location. Call it before publishing a blog post.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:blogs/check-slug.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Query Parameters

urlSlugstringrequired

URL slug to check for uniqueness

Example:my-blog-post
locationIdstringrequired

Sub-account (location) identifier the slug is being checked under

Example:ve9EPM428h8vShlRW1KT
postIdstring

Identifier of the existing post to exclude from the uniqueness check

Example:66c381b38be80858b9af62b6

Response

Successful response

existsbooleanrequired

Indicates whether the url slug exists or not

Example:false