Organization routes

Get the Organization's basic information

This route will return to you the following:

the email, name, and ID of the organization.

Gets the organization's basic information

GET https://sandbox.oumla.com/api/v1/organizations

Headers

NameTypeDescription

x-api-key*

String

The API key generated from Oumla's dashboard

Sample code of the request:

async function getOrganizations() {
  const apiKey = "Your API Key";
  const url = "https://sandbox.oumla.com/api/v1/organizations";

  const response = await fetch(url, {
    method: "GET",
    headers: {
      "x-api-key": apiKey,
      "Content-Type": "application/json",
    },
  });

  const data = await response.json();
  console.log(data);
}

// Example usage
getOrganizations()

The expected response:

{
    "data": {
        "id": "89a625b9-4c5f-4130-8b56-afx8010f8103",
        "name": "test",
        "email": "test@email.com"
    },
    "success": true,
    "status": 200
}

Last updated