Skip to content

Pause endpoint

POST
/v1/endpoints/{id}/pause
curl --request POST \
--url https://api.hookbridge.io/v1/endpoints/ep_550e8400e29b41d4a716446655440000/pause \
--header 'Authorization: Bearer <token>'

Pause an endpoint. While paused, messages sent to this endpoint will be accepted and stored but not delivered. Messages queued during pause are transitioned to paused status. Use the resume endpoint to re-enable delivery and requeue paused messages.

id
required
string
/^ep_[a-f0-9]{32}$/

Endpoint identifier (ep_ prefix + 32 hex chars)

Example
ep_550e8400e29b41d4a716446655440000

Endpoint paused successfully

Media typeapplication/json
object
data
object
id

Endpoint identifier

string
paused

Whether the endpoint is paused (always true on success)

boolean
meta
object
request_id

Unique identifier for this request (useful for support)

string
Example
{
"data": {
"id": "ep_550e8400e29b41d4a716446655440000",
"paused": true
},
"meta": {
"request_id": "req_xyz123"
}
}

Invalid request

Media typeapplication/json
object
error
object
code

Machine-readable error code

string
message

Human-readable error message

string
meta
object
request_id

Unique identifier for this request (useful for support)

string
Examples

Endpoint not found

{
"error": {
"code": "ENDPOINT_NOT_FOUND",
"message": "endpoint not found"
},
"meta": {
"request_id": "req_xyz123"
}
}

Unauthorized - Invalid or missing API key

Media typeapplication/json
object
error
object
code

Machine-readable error code

string
message

Human-readable error message

string
meta
object
request_id

Unique identifier for this request (useful for support)

string
Example
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
},
"meta": {
"request_id": "req_xyz123"
}
}

Resource not found

Media typeapplication/json
object
error
object
code

Machine-readable error code

string
message

Human-readable error message

string
meta
object
request_id

Unique identifier for this request (useful for support)

string
Example
{
"error": {
"code": "NOT_FOUND",
"message": "Message not found"
},
"meta": {
"request_id": "req_xyz123"
}
}

Endpoint is already paused

Media typeapplication/json
object
error
object
code

Machine-readable error code

string
message

Human-readable error message

string
meta
object
request_id

Unique identifier for this request (useful for support)

string
Example
{
"error": {
"code": "ALREADY_PAUSED",
"message": "Endpoint is already paused"
},
"meta": {
"request_id": "req_xyz123"
}
}
Personalize Examples

Enter your credentials to populate code examples throughout the docs.