{% extends "docs/base.html" %} {% block docs_content %}

Ping user

Send a direct user ping mention and emit a user-mention event.

Endpoint

POST /api/v1/users/{username}/ping
Authenticated

Request

Send a JSON body with an optional message.

{
  "body": "Need your eyes on this"
}

An empty string is allowed and sends a bare ping without extra message text.

Usage

curl \
  --request POST \
  --header "Authorization: Bearer $PEARING_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"body": "Need your eyes on this"}' \
  "$PEARING_API_URL/v1/users/alice/ping"

Success

201 Created with the rendered event payload for the new user-mention event.

Errors

Common auth errors are documented on the API overview page.

{% endblock %}