Get the team
curl --request GET \
--url https://api.peel.sh/v1/team \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/team', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/team"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"account_id": "<string>",
"members": [
{
"user_id": "<string>",
"email": "<string>",
"role": "owner",
"added_at": "2023-11-07T05:31:56Z"
}
],
"invites": [
{
"id": "<string>",
"email": "<string>",
"role": "admin",
"expires_at": "2023-11-07T05:31:56Z"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}Account
Get the team
The owner, the members with their roles, and open invitations of the account you act on. With a session, send Peel-Account to act on a team you belong to.
GET
/
v1
/
team
Get the team
curl --request GET \
--url https://api.peel.sh/v1/team \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/team', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/team"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"account_id": "<string>",
"members": [
{
"user_id": "<string>",
"email": "<string>",
"role": "owner",
"added_at": "2023-11-07T05:31:56Z"
}
],
"invites": [
{
"id": "<string>",
"email": "<string>",
"role": "admin",
"expires_at": "2023-11-07T05:31:56Z"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}⌘I