Get list of sponsors

Returns a list of all sponsors that the user has access to. By providing the "sponsorId" parameter, this sponsor will be used as the parent sponsor. When not provided, the parent will be the user's sponsor

Request
Security:
st_portal_auth
(read:sponsors)
query Parameters
sponsorId
integer <int64>

id of the sponsor which should be used to filter list

Example: sponsorId=1
Responses
200

successful operation

400

Bad Request. The request parameters (or body) were malformed or invalid. Fix the issues with the request and try again.

401

Unauthorized request. Make sure token was included and is valid and try again.

403

Forbidden. You are not permitted to access the requested resource.

404

Not Found. The specified resource (or resource referred to by id) was not found

405

Method Not Allowed. The API was accessed with the wrong method

429

Too Many Requests. The API is rate-limited. Wait and try your request again.

500

Internal Server Error. An unexpected error has occurred. This may be due to a transient error. Retry the request and if the issue persists, please contact support.

503

Service Unavailable. The service is temporarily unavailable. Try your request later.

get/wrm/v1/sponsors
Request samples
curl -i -X GET \
  'https://api.vikingcloud.com/wrm/v1/sponsors?sponsorId=0' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'
Response samples
application/json
[
  • {
    }
]