Anytify

Send notifications to your group easily

Anytify makes it easy to send notifications to your group chats, personal chat, or any application with simple API integration.

Get Started

Features

Easy Integration

Simple API allows you to integrate notifications with any service or application in minutes.

Group Notifications

Send notifications to group chats, keeping your team informed in real-time.

Custom Messages

Customize your notifications with text, images, and stickers for better engagement.

Documentation

Overview

Anytify is a service that makes it easy to send notifications to your group chats or personal chats. With a simple API, you can integrate notifications into your applications, services, or websites.

Overview

Anytify is a service that makes it easy to send notifications to your group chats or personal chats. With a simple API, you can integrate notifications into your applications, services, or websites.

Getting Started

To get started with Anytify, follow these steps:

  1. Register a service on the Anytify website
  2. Add the Anytify bot as a friend
  3. Invite the bot to a group or 1-on-1 chat
  4. Obtain an access token
  5. Use the token to send notifications

OAuth API

Anytify uses OAuth 2.0 for authentication and authorization. The following endpoints are available for OAuth operations:

Authorization

GET https://anytify.com/oauth/authorize

This endpoint is used to request authorization from the user. You must redirect the user to this URL.

Request Parameters
Parameter Type Required Description
response_type String Yes Must be "code"
client_id String Yes Your client ID obtained during service registration
redirect_uri String Yes URL to redirect the user after authorization
scope String Yes Must be "notify"
state String Yes A random string to prevent CSRF attacks
Example Request
https://anytify.com/oauth/authorize?response_type=code&client_id=XXXXXXX&redirect_uri=https://example.com/callback&scope=notify&state=12345abcde
Response

After user authorization, the user will be redirected to the provided redirect_uri with a code parameter:

https://example.com/callback?code=XXXXXXX&state=12345abcde

Token

POST https://anytify.com/oauth/token

This endpoint is used to exchange an authorization code for an access token.

Request Parameters
Parameter Type Required Description
grant_type String Yes Must be "authorization_code"
code String Yes Authorization code received from the authorize endpoint
redirect_uri String Yes Same redirect_uri used in the authorize request
client_id String Yes Your client ID
client_secret String Yes Your client secret
Example Request
curl -X POST https://anytify.com/oauth/token \
  -F 'grant_type=authorization_code' \
  -F 'code=XXXXXXX' \
  -F 'redirect_uri=https://example.com/callback' \
  -F 'client_id=XXXXXXX' \
  -F 'client_secret=XXXXXXX'
Example Response
{
  "access_token": "XXXXXXX",
  "token_type": "Bearer"
}

Notify API

The Notify API provides endpoints for sending notifications and managing access tokens:

Status

GET https://api.anytify.com/api/status

This endpoint is used to check the status of an access token.

Headers
Header Value
Authorization Bearer {access_token}
Example Request
curl -X GET https://api.anytify.com/api/status \
  -H 'Authorization: Bearer XXXXXXX'
Example Response
{
  "status": 200,
  "message": "ok",
  "targetType": "USER",
  "target": "User Name"
}

Notify

POST https://api.anytify.com/api/notify

This endpoint is used to send notifications to users or groups.

Headers
Header Value
Authorization Bearer {access_token}
Content-Type application/x-www-form-urlencoded
Request Parameters
Parameter Type Required Description
message String Yes Notification message (Max: 1000 characters)
imageFile File No Image file to send (Max: 10MB, JPEG only)
imageThumbnail String No Image thumbnail URL (Max: 240×240px, JPEG only)
imageFullsize String No Image full size URL (Max: 2048×2048px, JPEG only)
stickerPackageId Number No Sticker package ID
stickerId Number No Sticker ID
notificationDisabled Boolean No True to disable notification sound
Example Request
curl -X POST https://api.anytify.com/api/notify \
  -H 'Authorization: Bearer XXXXXXX' \
  -F 'message=Hello, this is a test notification!' \
  -F 'imageFile=@/path/to/image.jpg'
Example Response
{
  "status": 200,
  "message": "ok"
}

Revoke

POST https://api.anytify.com/api/revoke

This endpoint is used to revoke an access token.

Headers
Header Value
Authorization Bearer {access_token}
Example Request
curl -X POST https://api.anytify.com/api/revoke \
  -H 'Authorization: Bearer XXXXXXX'
Example Response
{
  "status": 200,
  "message": "ok"
}

Rate Limits

The Anytify API has the following rate limits:

  • 1,000 notifications per hour
  • Notifications can be sent to a specific user or group once every second

Error Codes

Status Code Error Message Description
400 Invalid parameter A required parameter is missing or invalid
401 Invalid access token The access token is invalid or expired
429 Rate limit exceeded Too many requests sent in a short time
500 Server error An error occurred on the server