Avisi cloud logo
Organisations

Get the membership in an organisation for the user requesting this endpoint.

GET
/api/v1/organisations/{organisationSlug}/me

Path Parameters

organisationSlugstring
Pattern"^[a-z0-9-_]+$"

Response Body

Request was successfully processed. The response body contains the requested data.

TypeScript Definitions

Use the response body type in TypeScript.

subject?string
Format"uuid"
identity?string
Format"uuid"
username?string
role?string
Value in"admin" | "developer" | "billing-admin" | "viewer"
kubernetesRole?string
Value in"cluster-admin" | "edit" | "view" | ""
joinedAt?string
Format"date-time"
email?string

Invalid request parameters. Please review the documentation for valid parameter values.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

You do not have the necessary permissions to access this resource.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

The requested resource could not be found. Please check the resource URL or identifier.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

An internal error occurred on the server.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown
curl -X GET "https://api.avisi.cloud/api/v1/organisations/string/me"
fetch("https://api.avisi.cloud/api/v1/organisations/string/me")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.avisi.cloud/api/v1/organisations/string/me"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.avisi.cloud/api/v1/organisations/string/me"

response = requests.request("GET", url)

print(response.text)
{
  "subject": "60edbbae-71be-4fbc-b2c1-f38d95f4b1b6",
  "identity": "10a80a7a-1a32-4a74-b592-aa2a4ef691c5",
  "username": "string",
  "role": "admin",
  "kubernetesRole": "cluster-admin",
  "joinedAt": "2019-08-24T14:15:22Z",
  "email": "string"
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}