Team User Management
oauth.token
Exchanges a client_id + client_secret for a short-lived OAuth 2.0 access token. The token is required for every /api/user/manage/v1/users* request. Token lifetime is 1 hour (3600 seconds) — cache and reuse until expiry.
POST
/
api
/
user
/
manage
/
v1
/
oauth
/
token
Obtain Access Token
curl --request POST \
--url https://api.manus.im/api/user/manage/v1/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=client_credentials \
--data client_id=tm_RRa7dgjD_AFhru6AnZJ8W \
--data client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456import requests
url = "https://api.manus.im/api/user/manage/v1/oauth/token"
payload = {
"grant_type": "client_credentials",
"client_id": "tm_RRa7dgjD_AFhru6AnZJ8W",
"client_secret": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
grant_type: 'client_credentials',
client_id: 'tm_RRa7dgjD_AFhru6AnZJ8W',
client_secret: 'a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456'
})
};
fetch('https://api.manus.im/api/user/manage/v1/oauth/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.manus.im/api/user/manage/v1/oauth/token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "grant_type=client_credentials&client_id=tm_RRa7dgjD_AFhru6AnZJ8W&client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.manus.im/api/user/manage/v1/oauth/token"
payload := strings.NewReader("grant_type=client_credentials&client_id=tm_RRa7dgjD_AFhru6AnZJ8W&client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.manus.im/api/user/manage/v1/oauth/token")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("grant_type=client_credentials&client_id=tm_RRa7dgjD_AFhru6AnZJ8W&client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.manus.im/api/user/manage/v1/oauth/token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "grant_type=client_credentials&client_id=tm_RRa7dgjD_AFhru6AnZJ8W&client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
response = http.request(request)
puts response.read_body{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Questions or issues? Contact us at api-support@manus.ai.
Auth: None — credentials live in the form body, not a header.Token lifetime: 1 hour (3600 seconds). Cache and reuse — re-minting on every request will hit rate limits.Content-Type:
application/x-www-form-urlencoded (not JSON).Scope: The returned access token only authorises /api/user/manage/v1/users* calls. It does not authorise the credential management RPCs (/team.v1.TeamManagementService/*) — those use a session token.Errors:400 INVALID_GRANT_TYPE—grant_typemust be exactlyclient_credentials.400 INVALID_REQUEST—client_idorclient_secretis missing.401 INVALID_CLIENT— credentials are unknown or have been deleted.
/api/user/manage/v1/oauth/token, grant type client_credentials. See the SailPoint integration notes in the overview.Body
application/x-www-form-urlencoded
Must be client_credentials.
Available options:
client_credentials Example:
"client_credentials"
Client identifier issued by team.v1.TeamManagementService/CreateApiCredential.
Example:
"tm_RRa7dgjD_AFhru6AnZJ8W"
Client secret issued by team.v1.TeamManagementService/CreateApiCredential.
Example:
"a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
Response
Token issued successfully.
⌘I
Obtain Access Token
curl --request POST \
--url https://api.manus.im/api/user/manage/v1/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=client_credentials \
--data client_id=tm_RRa7dgjD_AFhru6AnZJ8W \
--data client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456import requests
url = "https://api.manus.im/api/user/manage/v1/oauth/token"
payload = {
"grant_type": "client_credentials",
"client_id": "tm_RRa7dgjD_AFhru6AnZJ8W",
"client_secret": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
grant_type: 'client_credentials',
client_id: 'tm_RRa7dgjD_AFhru6AnZJ8W',
client_secret: 'a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456'
})
};
fetch('https://api.manus.im/api/user/manage/v1/oauth/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.manus.im/api/user/manage/v1/oauth/token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "grant_type=client_credentials&client_id=tm_RRa7dgjD_AFhru6AnZJ8W&client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.manus.im/api/user/manage/v1/oauth/token"
payload := strings.NewReader("grant_type=client_credentials&client_id=tm_RRa7dgjD_AFhru6AnZJ8W&client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.manus.im/api/user/manage/v1/oauth/token")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("grant_type=client_credentials&client_id=tm_RRa7dgjD_AFhru6AnZJ8W&client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.manus.im/api/user/manage/v1/oauth/token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "grant_type=client_credentials&client_id=tm_RRa7dgjD_AFhru6AnZJ8W&client_secret=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
response = http.request(request)
puts response.read_body{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}