Organizations
Organization management and membership
All endpoints require a bearer token (oh_... API key or user JWT) and are served under https://api.orderly-hub.com. Use the Try it consoles to run a request against the Preview (test) server.
Get current organization
GET
/api/v1/organizationsResponses
200 Organization details
GET
/api/v1/organizationsGet current organization
https://api-test.orderly-hub.com/api/v1/organizationsUpdate organization (admin only)
PATCH
/api/v1/organizationsRequest body
| Field | Type | Description |
|---|---|---|
name | string | |
settings | object |
{
"name": "Jane Doe",
"settings": {}
}
Responses
200 Updated organization
PATCH
/api/v1/organizationsUpdate organization (admin only)
https://api-test.orderly-hub.com/api/v1/organizationsList organization members
GET
/api/v1/organizations/membersResponses
200 List of members
GET
/api/v1/organizations/membersList organization members
https://api-test.orderly-hub.com/api/v1/organizations/membersList pending invitations
GET
/api/v1/organizations/members/invitationsResponses
200 List of invitations
GET
/api/v1/organizations/members/invitationsList pending invitations
https://api-test.orderly-hub.com/api/v1/organizations/members/invitationsInvite a member (admin only)
POST
/api/v1/organizations/members/inviteRequest body
| Field | Type | Description |
|---|---|---|
email | string | |
role | member | admin | owner |
{
"email": "jane@example.com",
"role": "member"
}
Responses
201 Invitation created
POST
/api/v1/organizations/members/inviteInvite a member (admin only)
https://api-test.orderly-hub.com/api/v1/organizations/members/inviteCancel an invitation (admin only)
DELETE
/api/v1/organizations/members/invite/{invitationId}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
invitationId | path | yes | string |
Responses
200 Invitation cancelled
DELETE
/api/v1/organizations/members/invite/{invitationId}Cancel an invitation (admin only)
https://api-test.orderly-hub.com/api/v1/organizations/members/invite/Accept an invitation by token
POST
/api/v1/organizations/members/invite/{token}/acceptParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
token | path | yes | string |
Responses
200 Invitation accepted
POST
/api/v1/organizations/members/invite/{token}/acceptAccept an invitation by token
https://api-test.orderly-hub.com/api/v1/organizations/members/invite//acceptRemove a member (admin only)
DELETE
/api/v1/organizations/members/{userId}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
userId | path | yes | string |
Responses
200 Member removed
DELETE
/api/v1/organizations/members/{userId}Remove a member (admin only)
https://api-test.orderly-hub.com/api/v1/organizations/members/