Skip to content
Fluxer API

Relationships

A relationship is a friendship, block or pending friend request, seen from one account. Only user tokens can call these routes, and bot and OAuth2 tokens get 403 ACCESS_DENIED.

Each account has its own record. A friendship is a FRIEND record on both accounts, a pending request is OUTGOING_REQUEST on the sender and INCOMING_REQUEST on the recipient, and a block is a BLOCKED record on the blocker only.

FieldTypeDescription
idsnowflakeThe ID of the related account
typeintegerThe relationship type
userpartial user objectThe related account
since?ISO8601 timestampWhen the record got its current type
nickname?stringYour private nickname for the related account
share_voice_activitybooleanWhether you share voice activity with the related account
friend_shares_voice_activity1booleanWhether the related account shares voice activity with you

1 Only List relationships and the Relationship Update sent by Modify voice activity sharing return the real value. Everything else returns true.

{
"id": "1501314428688998182",
"type": 1,
"user": {"id": "1501314428688998182", "username": "aria", "discriminator": "0042"},
"since": "2026-01-14T09:31:00.000Z",
"nickname": "climbing partner",
"share_voice_activity": true,
"friend_shares_voice_activity": false
}
ValueNameDescription
1FRIENDThe two accounts are friends
2BLOCKEDYou have blocked the related account
3INCOMING_REQUESTThe related account has sent you a friend request
4OUTGOING_REQUESTYou have sent the related account a friend request
FieldTypeDescription
ignored_countintegerThe number of incoming friend requests removed
ValueNameDescription
allAllMatches every incoming friend request
new_accountsNew accountsMatches senders whose accounts are younger than max_account_age_seconds, or every request when it is left out

The max_relationships limit caps the friendships, blocks and pending requests one account has, and defaults to 1000. Adding a record fails with 400 MAX_FRIENDS when either account is at the limit, and the error has a max_relationships field with the limit. Bot accounts have no limit, and blocking skips the check.

GET/v1/users/@me/relationships

Returns every relationship you have, in no particular order.

StatusBodyCondition
200array[relationship object]Relationships were returned

The rate limit is 40 requests per 10 seconds, on the user:relationships:list bucket.

POST/v1/users/@me/relationships

Sends a friend request to the account with the given username and discriminator, under the rules of Send friend request by user ID. Returns a relationship object.

FieldTypeDescription
usernamestringThe username of the target (1-32 characters)
discriminator?string | integerThe discriminator of the target (1-4 digits)

You can leave out the discriminator only when the instance tag style is none.

StatusBodyCondition
200relationship objectThe request or friendship was returned
400error responseNO_USERS_WITH_FLUXERTAG_EXIST, DISCRIMINATOR_REQUIRED, ALREADY_FRIENDS, or a code from the user ID route
403error responseUNCLAIMED_ACCOUNT_CANNOT_SEND_FRIEND_REQUESTS, FRIEND_REQUEST_EMAIL_VERIFICATION_REQUIRED or NEW_CONVERSATIONS_LIMITED

The rate limit is 10 requests per minute, on the user:friend_request:send bucket.

POST/v1/users/@me/relationships/{user_id}

Sends a friend request to an account, or accepts the account's pending request to you. Returns a relationship object.

The body is optional.

FieldTypeDescription
staff_force_accept?booleanWhether to make the accounts friends directly, skipping blocks, friend source flags and the limit (STAFF only)
StatusBodyCondition
200relationship objectThe request or friendship was returned
400error responseOne of the codes below
403error responseUNCLAIMED_ACCOUNT_CANNOT_SEND_FRIEND_REQUESTS, FRIEND_REQUEST_EMAIL_VERIFICATION_REQUIRED or NEW_CONVERSATIONS_LIMITED
404error responseUNKNOWN_USER when the account does not exist

A 400 has one of these codes.

CodeCondition
FRIENDS_DISABLEDThe community policy sets friends_disabled
CANNOT_SEND_FRIEND_REQUEST_TO_SELFThe target is you
CANNOT_SEND_FRIEND_REQUEST_TO_BLOCKED_USERYou have blocked the target
FRIEND_REQUEST_BLOCKEDThe target is deleted, blocked you, is a bot without FRIENDLY_BOT or excludes you
MAX_FRIENDSYou are at the relationship limit

If you already have a friendship or outgoing request with the account, it comes back unchanged, and a pending request from the account is accepted. A new request sends Relationship Add to both accounts, and an acceptance sends Relationship Update to both. A bot with FRIENDLY_BOT and without FRIENDLY_BOT_MANUAL_APPROVAL accepts at once, and the response is then the bot's record, with your account as user. Accepting through this route does not open a direct message.

The rate limit is 10 requests per minute, on the user:friend_request:send bucket.

PUT/v1/users/@me/relationships/{user_id}

Accepts a pending incoming friend request, or blocks the account when type is BLOCKED. Returns a relationship object.

The body is optional. Any type other than BLOCKED, or no body, accepts a pending incoming request.

FieldTypeDescription
type?integerThe relationship type. Send BLOCKED to block the account
StatusBodyCondition
200relationship objectThe friendship or the block was returned
400error responseOne of the codes below
403error responseYour account is unclaimed, or unverified while interaction_tier is enforced
404error responseUNKNOWN_USER when the account does not exist, or when accepting and no incoming request exists

A 400 has one of these codes.

CodeCondition
FRIENDS_DISABLEDThe community policy sets friends_disabled and you are accepting
FRIEND_REQUEST_BLOCKEDEither account is deleted
CANNOT_BLOCK_SYSTEM_USERThe block target is the Fluxer system account
MAX_FRIENDSYou are at the relationship limit

A 403 has UNCLAIMED_ACCOUNT_CANNOT_ACCEPT_FRIEND_REQUESTS or FRIEND_REQUEST_EMAIL_VERIFICATION_REQUIRED.

Accepting sends Relationship Update to both accounts, opens your direct message with the account for both of you, and sends Channel Create to whoever did not already have it open.

Blocking replaces any friendship or pending request with a BLOCKED record and sends Relationship Add to you. If the block ends a friendship or your outgoing request, the other account's record is deleted too and it gets Relationship Remove. Blocking works even when friends are disabled or your account is unclaimed, and it does not close the direct message.

The rate limit is 20 requests per 10 seconds, on the user:friend_request:accept bucket.

DELETE/v1/users/@me/relationships/{user_id}

Removes your friendship, pending request in either direction, or block with an account. Returns 204 with an empty body.

StatusBodyCondition
204emptyThe relationship was removed
404error responseUNKNOWN_USER when you have no relationship with the account

Removing a friendship or outgoing request deletes both records and sends Relationship Remove to both accounts. Removing a block or declining an incoming request deletes only your record and sends the event only to you, and the sender keeps its OUTGOING_REQUEST.

The rate limit is 30 requests per 10 seconds, on the user:relationship:delete bucket.

PATCH/v1/users/@me/relationships/{user_id}

Sets or clears your private nickname for a friend, which the friend never sees. Returns the updated relationship object and sends Relationship Update to you.

FieldTypeDescription
nickname?stringThe nickname (up to 256 characters), or null to clear it
StatusBodyCondition
200relationship objectThe updated relationship was returned
404error responseUNKNOWN_USER when the account is not your friend

The rate limit is 30 requests per 10 seconds, on the user:relationship:update bucket.

POST/v1/users/@me/relationships/bulk-ignore

Removes your matching incoming friend requests. Returns a bulk ignore result object.

The body is optional.

FieldTypeDescription
filter?stringThe bulk ignore filter (default all)
max_account_age_seconds?integerWith new_accounts, only match senders whose accounts are younger than this many seconds
StatusBodyCondition
200bulk ignore result objectMatching requests were removed

Each match deletes both records and sends Relationship Remove to you and the sender.

The rate limit is 5 requests per minute, on the user:friend_request:bulk_ignore bucket.