/v0/accounts/:id/relationships
GET
/v0/accounts/:id/relationships
const url = 'http://localhost:3000/v0/accounts/:id/relationships';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/v0/accounts/:id/relationships \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
Account ID
string
Example
31415926535Account ID
Responses
Section titled “ Responses ”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
Example
{ "error": "ACCOUNT_NOT_FOUND"}Internal Server Error
Media type application/json
object
error
required
Internal server error.
string
Example
{ "error": "INTERNAL_ERROR"}