Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://api.forge.ai/api/headless/v1/organizations/{organizationId}/resources/{resourceId}/direct-access \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.forge.ai/api/headless/v1/organizations/{organizationId}/resources/{resourceId}/direct-access" headers = {"Authorization": "Bearer <token>"} response = requests.post(url, headers=headers) print(response.text)
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.forge.ai/api/headless/v1/organizations/{organizationId}/resources/{resourceId}/direct-access', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.forge.ai/api/headless/v1/organizations/{organizationId}/resources/{resourceId}/direct-access" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("Authorization", "Bearer <token>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
{ "tokenType": "Bearer", "expiresAt": "2023-11-07T05:31:56Z" }
{ "message": "<string>" }
Enter a Forge service-account token or delegated OAuth access token. Mintlify adds the Bearer prefix.
Short-lived Resource access credential for the authenticated service account.
Bearer