Get the active organization
curl --request GET \
--url https://jaliprohmis.derrickmugabwa.dev/api/v1/organization \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://jaliprohmis.derrickmugabwa.dev/api/v1/organization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://jaliprohmis.derrickmugabwa.dev/api/v1/organization"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": 123,
"name": "<string>",
"legal_name": "<string>",
"code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"website": "<string>",
"address": "<string>",
"is_active": true
}
}{
"message": "Unauthenticated."
}{
"message": "Unauthenticated."
}Foundation and integrations
Get the active organization
Retrieve the active HMIS organization.
GET
/
organization
Get the active organization
curl --request GET \
--url https://jaliprohmis.derrickmugabwa.dev/api/v1/organization \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://jaliprohmis.derrickmugabwa.dev/api/v1/organization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://jaliprohmis.derrickmugabwa.dev/api/v1/organization"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": 123,
"name": "<string>",
"legal_name": "<string>",
"code": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"website": "<string>",
"address": "<string>",
"is_active": true
}
}{
"message": "Unauthenticated."
}{
"message": "Unauthenticated."
}Returns the active organization visible to the authenticated HMIS API client.