One endpoint. It sends a line of text to the project’s owner, shown under the app’s name. Setup is in Send a notification.
POST https://studio.ynch.ai/notify/v1/projects/{projectId}
Authorization: Bearer ynk_...
Content-Type: application/json
{"text":"New questions added!"}
| Part |
Value |
{projectId} |
Your project’s id, proj_..., shown under Developer details on the project page. |
Authorization |
Bearer and the project’s notification key. |
| Body |
A JSON object with exactly one property, text: one line, 1 to 180 characters, no leading or trailing spaces. |
| Status |
Body |
Meaning |
202 |
{"status":"sent"} |
Listed in Studio and handed to Apple for each of the owner’s iPhones. |
400 |
{"error":"bad_request", ...} |
The body is not {"text":"..."} with one valid line. |
401 |
{"error":"unauthenticated"} |
No key, a wrong or replaced key, or a key for another project. |
404 |
{"error":"not_found"} |
Wrong path or method. |
429 |
{"error":"rate_limited", ...} |
The project has sent its 100 notifications for the day (UTC). |
503 |
{"error":"unavailable"} |
Try again later. |
- The title is always the app’s name. A notification cannot carry a link, an image or a custom title.
202 means accepted. Delivery to a phone depends on Apple and on notifications being allowed for the Ynch app.
- The key is stored by Ynch only as a hash. Replace it in the project’s Settings if it may have leaked; the old key stops working immediately.