WordPress

A one-time pairing code for the Hostingsurge Connector plugin, bound to one site address (15 minutes, single use, shown once). The site is connected once the plugin redeemed the code and answered a signed check. Uses the wordpress.connect_external add-on like a password connection

post/wordpress/connector/pairings

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/wordpress/connector/pairings
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Query parameters

orgIdstring

Request body

siteUrlstring required

The site's https address (the code only works for this site)

projectIdstring uuid

Tie the connection to a project: members with access to that project can use it

scopesstring[]

Default: all five

Response

The code

codestring required

The one-time code to paste in wp-admin → Settings → Hostingsurge (shown once)

pluginUrlstring required

Where to download the plugin (a zip to upload in wp-admin → Plugins → Add New)

Changes

No recorded changes to this operation across all 1 revision of this API.