This document only provides API which the add-on makes an enhancement. To view other API end points please go to Official XenForo API docs
All requests must be include there keys in headers:
XF-TApi-Key
XF-TApi-Token
: If omitted the request processed for Guest user.
Parameters:
username
(string) requiredpassword
(string) required: Password must be encrypted.
Response:
{
user: (user),
accessToken: (string)
}
Parameters:
username
(string) requiredemail
(string) requiredpassword
(string) required: Password must be encrypted.birthday
(string) optional: Birthday must be formattedY-m-d
. Eg:2021-12-15
Response:
{
user: (user),
accessToken: (string)
}
Get list conversations by current visitor. Requires valid user access token. XenForo API Docs
Creating a conversation.
Extra parameters:
recipients
(string) optional: Create with conversation with many recipients. Each recipient name separate by comma (,).tapi_recipients
(bool) optional: Include recipients in conversation object.- Other params
Response:
{
"conversation: (conversation)
}
Get specific conversation details.
Extra parameters:
tapi_recipients
(bool) optional: Include recipients in conversation object.- Other params
Response:
{
"conversation": (conversation)
}
Get reactions on specific conversation message.
Parameters:
reaction_id
(int) optional: Filter show specific reaction.
Response:
{
"reactions": [
(reaction)
]
}
Parameters:
- N/A
Response:
{
"prefix_groups": any[],
"prefixes": [
(prefix),
...
],
"prefix_tree": int[],
}
Parameters:
- N/A
Response:
{
"message": (string)
}
Parameters:
started_by
(string) optional: Filter threads were created by specific user name.with_first_post
(bool) optional: Determine include FirstPost in the thread data.- Other params
Response:
{
"threads": [
(thread),
...
]
}
Parameters:
- N/A
Response:
{
"users": [
(user),
...
]
}
Ignore a user
Parameters:
user_id
(int) required
Response:
{
"message": (string)
}
Unignore a user
Parameters:
- N/A
Response:
{
"message": (string)
}
Parameters:
page
(int) optional
Response:
{
"threads": [
(thread),
...
],
"pagination": (pagination)
}
Send a numerous requests in a single request. This API requires body is JSON which contains the following info:
[
{
"uri": (string),
"method": (string),
"params": {
"foo": "baz",
...
}
}
]
Parameters:
message
(string) required
Response:
{
"message": (string)
}
Parameters:
reaction_id
(int) optional: Filter show specific reaction.
Response:
{
"reactions": [
(reaction)
]
}
Parameters:
message
(string) required
Response:
{
"message": (string)
}
Parameters:
reaction_id
(int) optional: Filter show specific reaction.
Response:
{
"reactions": [
(reaction)
]
}
Parameters:
message
(string) required
Response:
{
"message": (string)
}
Parameters:
reaction_id
(int) optional: Filter show specific reaction.
Response:
{
"reactions": [
(reaction)
]
}
Parameters:
post_id
(int) optionalis_unread
(int) optional- Other params
Response:
{
"thread": (thread)
}
Parameters:
- N/A
Response:
{
"is_watched": (bool)
}
Parameters:
page
(int) optional
Response:
{
"users": [
(user),
...
],
"pagination": (pagination)
}
Make current visitor follow this user
Parameters:
- N/A
Response:
{
"message": (string)
}
Make current visitor unfollow this user
Parameters:
- N/A
Response:
{
"message": (string)
}
Parameters:
message
(string) required
Response:
{
"message": (string)
}
Parameters:
page
(int) optional
Response:
{
"threads": [
(thread),
...
],
"pagination": (pagination)
}
Self-delete user account.
Parameters:
- N/A
Response:
{
"message": (string)
}
Searching content...
Parameters:
keywords
requiredsearch_type
optional. Allowed values: thread, post, user.search_order
optional. Allowed values: date, relevance*
Response:
{
"keywords": (string),
"search_id": (int),
"results": (any),
"pagination": (pagination)
}
Associate with external account.
Parameters:
provider
required. Connected account provider ID.token
required. The access token.
Response:
{
"user": (user),
"accessToken": (string)
}
Request to change username
Parameters:
username
required: New usernamechange_reason
required
Response:
{
"message": (string),
"changeState": (string),
}
Please see the method Util\PasswordDecrypter::encrypt(...)