Members
OAuth 2.0 access token obtained from the Spice.ai authentication service
List of organization members
Unauthorized
Insufficient scope
GET /v1/members HTTP/1.1
Host: api.spice.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"members": [
{
"user_id": 1,
"username": "text",
"roles": [
"text"
],
"is_owner": true,
"created_at": "2026-01-01T00:00:00.000Z"
}
]
}OAuth 2.0 access token obtained from the Spice.ai authentication service
The username of the user to add
Roles to assign to the new member
["member"]Member added successfully
Invalid request body
Unauthorized
Insufficient scope
User not found
User is already a member of this organization
POST /v1/members HTTP/1.1
Host: api.spice.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"username": "text",
"roles": [
"text"
]
}{
"user_id": 1,
"username": "text",
"roles": [
"text"
],
"created_at": "2026-01-01T00:00:00.000Z"
}OAuth 2.0 access token obtained from the Spice.ai authentication service
The user ID of the member
Member details
Unauthorized
Insufficient scope
Member not found
GET /v1/members/{memberId} HTTP/1.1
Host: api.spice.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"user_id": 1,
"username": "text",
"roles": [
"text"
],
"is_owner": true,
"created_at": "2026-01-01T00:00:00.000Z"
}OAuth 2.0 access token obtained from the Spice.ai authentication service
The user ID of the member
Member removed successfully
No content
Unauthorized
Insufficient scope or cannot remove organization owner
Member not found
DELETE /v1/members/{memberId} HTTP/1.1
Host: api.spice.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
OAuth 2.0 access token obtained from the Spice.ai authentication service
The user ID of the member
New roles to assign to the member
Member roles updated successfully
Invalid request body
Unauthorized
Insufficient scope or cannot modify organization owner
Member not found
PATCH /v1/members/{memberId} HTTP/1.1
Host: api.spice.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"roles": [
"text"
]
}{
"user_id": 1,
"username": "text",
"roles": [
"text"
],
"created_at": "2026-01-01T00:00:00.000Z"
}Last updated
Was this helpful?