---
title: "Set Connection"
method: POST
path: "/wordpress/sites/{site_id}/connection"
tags: ["wordpress"]
---

# Set Connection

`POST /wordpress/sites/{site_id}/connection`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/wordpress/sites/{site_id}/connection`
- Auth: API key in header `X-Agent-Key`

Capture the connection details. SSH: ssh_ip + username. Plugin: site_url +
wp_username + app_password. Auto-verifies either way.

## Path parameters

- `site_id` string, uuid, required

## Query parameters

- `email` string, nullable

## Request body

- ConnectionBody
  - `ssh_ip` string, nullable
  - `username` string, nullable
  - `wp_root` string, nullable
  - `wp_user` string, nullable
  - `site_url` string, nullable
  - `wp_username` string, nullable
  - `app_password` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
