Build with Pagecraft.

Connect WordPress and MCP clients to Pagecraft projects you own.

Base URL https://build.itspagecraft.com

Start here

List projects, read pages, and download WordPress-ready packages.

Base URL
https://build.itspagecraft.com
Authentication
Bearer token
Scopes
projects:read packages:read

Discovery

Get the current WordPress and MCP endpoints.

GET/.well-known/pagecraft-integrations
curl https://build.itspagecraft.com/.well-known/pagecraft-integrations

WordPress

Connect with OAuth 2.0 Authorization Code with PKCE.

  1. 1
    Authorize

    Send the user to the authorization endpoint.

  2. 2
    Exchange

    Exchange the returned code and PKCE verifier for a token.

  3. 3
    Import

    List projects and download a project or page package.

Authorization parameters

ParameterValue
installation_idStable WordPress installation ID
redirect_uriPagecraft callback in WordPress admin
code_challengeBase64url SHA-256 PKCE challenge
code_challenge_methodS256
stateRandom value checked on return
Callback rule

Use the exact Pagecraft callback in WordPress admin. HTTPS is required except on localhost and .local sites.

Endpoints

MethodPathUse
GET/v1/integrations/wordpress/authorizeStart the PKCE connection
POST/v1/integrations/wordpress/tokenIssue or refresh an access token
GET/v1/integrations/wordpress/connectionCheck the current connection
GET/v1/integrations/wordpress/catalogList owned projects and pages
GET/v1/integrations/wordpress/projects/{projectId}/packageDownload a project package
GET/v1/integrations/wordpress/projects/{projectId}/pages/{pageId}/packageDownload one page package
POST/v1/integrations/wordpress/revokeDisconnect the credential

Exchange the code

curl https://build.itspagecraft.com/v1/integrations/wordpress/token \
  --header "Content-Type: application/json" \
  --data '{
    "grant_type": "authorization_code",
    "code": "AUTHORIZATION_CODE",
    "code_verifier": "PKCE_VERIFIER",
    "redirect_uri": "WORDPRESS_CALLBACK"
  }'

Returns access and refresh tokens.

Read the catalog

curl https://build.itspagecraft.com/v1/integrations/wordpress/catalog \
  --header "Authorization: Bearer $PAGECRAFT_TOKEN"

Access tokens expire after 15 minutes and can be refreshed without reconnecting.

MCP

Connect an MCP client at POST /mcp using a Pagecraft bearer token.

pagecraft_list_projects
Lists projects owned by the connected account.
pagecraft_list_pages
Lists pages in a project. Input: projectId.
pagecraft_get_page
Reads one page. Input: projectId and pageId.

MCP uses the same read-only Pagecraft integration token as WordPress.

Access

  • Read-only access is limited to projects you own.
  • Imports are manual and create an independent WordPress copy.
  • Pagecraft never receives the WordPress password.

Common responses

StatusMeaning
400The grant, redirect, or PKCE values are invalid.
401The token is missing, expired, or revoked. Reconnect or refresh it.
403The account does not own a Pagecraft project.
404The project or page was not found for this account.
422Pagecraft could not create the requested package.
503The integration service is temporarily unavailable.