Skip to content

GET /wpcom/v2/sites/$wpcom_site/hosting/ssh-access

Gets the SSH access setting type for a site. Returns sftp or ssh access type.

Resource Information

   
Method GET
URL https://public-api.wordpress.com/wpcom/v2/sites/$wpcom_site/hosting/ssh-access
Requires authentication? Yes

Method Parameters

Parameter Type Required Description
wpcom_site string | integer Yes A domain or blog ID.

Response Example

					
						{
    "setting": "ssh"
}					
				

Resource Errors

This endpoint does not return any errors.