コンテンツにスキップ

/v0/accounts/:id/relationships

GET
/v0/accounts/:id/relationships
curl --request GET \
--url http://localhost:3000/v0/accounts/:id/relationships \
--header 'Authorization: Bearer <token>'
id
required

Account ID

string
Example
31415926535

Account ID

OK

Media type application/json
object
id
required

Account ID

string
is_followed
required

Whether the account is followed by the target account

boolean
is_following
required

Whether the account is following the target account

boolean
is_follow_requesting
required

Whether a follow request has been sent to the target account

boolean
Example
{
"id": "31415926535",
"is_followed": false,
"is_following": true,
"is_follow_requesting": false
}

Not Found

Media type application/json

Account not found

object
error
required

Account not found.

string
Allowed values: ACCOUNT_NOT_FOUND
Example
{
"error": "ACCOUNT_NOT_FOUND"
}

Internal Server Error

Media type application/json
object
error
required

Internal server error.

string
Allowed values: INTERNAL_ERROR
Example
{
"error": "INTERNAL_ERROR"
}