Oauth
To be confirmed.
API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/oauth/authenticate HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}Authorises a connector using OAuth, creating a new authenticated instance.
API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/oauth/authorise HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 290
{
"authentication_implementation_id": 1,
"timezone": "example_timezone",
"date_format": "example_date_format",
"rate_limit_unit": "second",
"rate_limit_duration": 1,
"connection_pool_id": 1,
"variables": "example_variables",
"session_id": 1,
"platform_app_key": "example_platform_app_key",
"certificate_id": 1
}{}To be confirmed.
API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/oauth/woo-app-auth HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 1,
"authentication_implementation_id": 1,
"timezone": "example_timezone",
"date_format": "example_date_format",
"rate_limit_unit": "second",
"rate_limit_duration": 1,
"connection_pool_id": 1,
"variables": [],
"session_id": 1,
"platform_app_key": "example_platform_app_key",
"certificate_id": 1,
"type": "example_type",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"name": "My Example",
"authentication_implementation": "example_authentication_implementation",
"system": "example_system",
"certificate": "example_certificate"
}
}Reauthorises an existing OAuth connector instance.
API key passed in the Authorization header. Format: <api-key>
The connector identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
PATCH /api/v1/oauth/{connector}/reauthorise HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 232
{
"authentication_implementation_id": 1,
"type": "example_type",
"timezone": "example_timezone",
"date_format": "example_date_format",
"rate_limit_unit": "second",
"rate_limit_duration": 1,
"connection_pool_id": 1,
"variables": "example_variables"
}{}Last updated
Was this helpful?