Skip to main content
PUT
/
users
/
@me
/
relationships
/
{user_id}
Accept or update friend request
curl --request PUT \
  --url https://api.fluxer.app/v1/users/@me/relationships/{user_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": 1
}'
{
  "id": "<string>",
  "type": 1,
  "user": {
    "id": "<string>",
    "username": "<string>",
    "discriminator": "<string>",
    "global_name": "<string>",
    "avatar": "<string>",
    "avatar_color": 1073741823,
    "flags": 1073741823,
    "bot": true,
    "system": true
  },
  "nickname": "<string>",
  "since": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Path Parameters

user_id
string<snowflake>
required

The ID of the user

Body

application/json
type
enum<integer>

Type of relationship to create

Available options:
1,
2,
3,
4

Response

Success

id
string
required

The unique identifier for the relationship

type
enum<integer>
required

The type of relationship (friend, blocked, pending, etc.)

Available options:
1,
2,
3,
4
user
object
required
nickname
string | null
required

A custom nickname set for the related user

since
string<date-time>

ISO8601 timestamp of when the relationship was established