Profiles
Funplace is profile-based, so any API call requires a profile ID.
API base url: https://funplace.fun/api/v1/user/profiles/
Get profiles linked to an account
GET get
scopes: Funplace::view or Funplace::profile
Exchange Bearer token for a list of profiles affiliated with the Vorg ID account.
Headers
Content-Type
application/json
Authorization
Bearer <access_token>
Response
{
"success": "ok",
"data": [{
"funprofile_id": 42,
"role": "owner"
}],
}{
"error": "bad request",
"error_data": "this link is already in use by another user"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
success
yes
string
Always have the value ok.
data
yes
array
An array with information about profiles.
data[?][funprofile_id]
yes
int
Profile id.
Get accounts linked to an profile
GET list
scopes: Funplace::profile
Get a list of accounts that have access to a profile.
Headers
Content-Type
application/json
Authorization
Bearer <access_token>
FUNPLACE-PROFILE-ID
<profile_id>
Response
{
"success": "ok",
"data": [{
"vorgid": 42,
"role": "owner"
}],
}{
"error": "bad request",
"error_data": "this link is already in use by another user"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
success
yes
string
Always have the value ok.
data
yes
array
An array with information about accounts.
data[?][vorgid]
yes
int
Vorg id.
Create profile
GET create
scopes: Funplace::profiles
Create funplace profile.
Headers
Content-Type
application/json
Authorization
Bearer <access_token>
Response
{
"success": "ok",
"funprofile_id": 42,
}{
"error": "bad request",
"error_data": "Invalid 'ttson' value"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
success
yes
string
Always have the value ok.
funprofile_id
yes
int
Profile id.
Invite user to the profile
GET invite
scopes: Funplace::prfolies::invite
Invite the user to your profile.
Headers
Content-Type
application/json
Authorization
Bearer <access_token>
FUNPLACE-PROFILE-ID
<profile id>
Query Parameters
no
string
email of the invited user.
id
no
int
Vorg ID of the invited user
Response
{
"success": "ok",
}{
"error": "bad request",
"error_data": "Invalid 'ttson' value"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
success
yes
string
Always have the value ok.
Block invites
GET blockinvites
scopes: Funplace::prfolies
Prevent people from inviting you to profiles.
Headers
Content-Type
application/json
Authorization
Bearer <access_token>
Query Parameters
state
yes
boolean
Should enable blocking?
Response
{
"success": "ok",
}{
"error": "bad request",
"error_data": "Invalid 'ttson' value"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
success
yes
string
Always have the value ok.
Edit user role
GET invite
scopes: Funplace::prfolies
Change the role or exclude the user from the profile.
Headers
Content-Type
application/json
Authorization
Bearer <access_token>
FUNPLACE-PROFILE-ID
<profile id>
Query Parameters
Response
{
"success": "ok",
}{
"error": "bad request",
"error_data": "Invalid 'ttson' value"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
success
yes
string
Always have the value ok.
Quit profile
GET quit
scopes: Funplace::prfolies
Leave the profile yourself.
Headers
Content-Type
application/json
Authorization
Bearer <access_token>
FUNPLACE-PROFILE-ID
<profile id>
Response
{
"success": "ok",
}{
"error": "bad request",
"error_data": "Invalid 'ttson' value"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
success
yes
string
Always have the value ok.
Roles
owner
full
Issued to the profile creator at the time of creation and to no one else.
manager
Full access except for changing member access levels to the profile and actions related to withdrawal of funds.
An account manager can be issued to anyone.
moderator
Only viewing account information and the ability to skip alert.
An account moderator can be issued to anyone.
viewer
Only view access.
An account moderator can be issued to anyone.
Last updated
Was this helpful?