OData Service for namespace microsoft.graph
microsoft · Developer Tools
This OData service is located at https://graph.microsoft.com/v1.0
Authentication
Sample Requests
Get admin
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/admin?$expand=example&$select=example"
import requests
params = {
"$expand": "example",
"$select": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/admin",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/admin');
url.searchParams.set('$expand', 'example');
url.searchParams.set('$select', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/admin")
q := baseURL.Query()
q.Set("$expand", "example")
q.Set("$select", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/admin")
uri.query = URI.encode_www_form({
"$expand" => "example",
"$select" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/admin?" . http_build_query([
"$expand" => "example",
"$select" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get entities from agreementAcceptances
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreementAcceptances?$search=example&$select=example"
import requests
params = {
"$search": "example",
"$select": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreementAcceptances",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreementAcceptances');
url.searchParams.set('$search', 'example');
url.searchParams.set('$select', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreementAcceptances")
q := baseURL.Query()
q.Set("$search", "example")
q.Set("$select", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreementAcceptances")
uri.query = URI.encode_www_form({
"$search" => "example",
"$select" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreementAcceptances?" . http_build_query([
"$search" => "example",
"$select" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get entities from agreements
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreements?$search=example&$select=example"
import requests
params = {
"$search": "example",
"$select": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreements",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreements');
url.searchParams.set('$search', 'example');
url.searchParams.set('$select', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreements")
q := baseURL.Query()
q.Set("$search", "example")
q.Set("$select", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreements")
uri.query = URI.encode_www_form({
"$search" => "example",
"$select" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/microsoft.com/graph/1.0.1/agreements?" . http_build_query([
"$search" => "example",
"$select" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with OData Service for namespace microsoft.graph?
OData Service for namespace microsoft.graph is a Developer Tools API. Developers commonly use developer tools APIs for:
- automating code review and quality checks
- integrating CI/CD pipelines and build systems
- managing feature flags and A/B tests
- monitoring errors and application performance
- generating and validating test data
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. OData Service for namespace microsoft.graph is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide