curl -X DELETE "https://app.runtm.com/api/github-app/user-token" \
-H "Authorization: Bearer runtm_xxx"
import requests
resp = requests.delete(
"https://app.runtm.com/api/github-app/user-token",
headers={"Authorization": "Bearer runtm_xxx"},
)
print(resp.json())
const resp = await fetch("https://app.runtm.com/api/github-app/user-token", {
method: "DELETE",
headers: {
Authorization: "Bearer runtm_xxx",
},
});
const data = await resp.json();
{
"message": "GitHub account disconnected"
}
GitHub User Tokens
Delete Token
Revoke and delete the stored GitHub user token.
DELETE
/
api
/
github-app
/
user-token
curl -X DELETE "https://app.runtm.com/api/github-app/user-token" \
-H "Authorization: Bearer runtm_xxx"
import requests
resp = requests.delete(
"https://app.runtm.com/api/github-app/user-token",
headers={"Authorization": "Bearer runtm_xxx"},
)
print(resp.json())
const resp = await fetch("https://app.runtm.com/api/github-app/user-token", {
method: "DELETE",
headers: {
Authorization: "Bearer runtm_xxx",
},
});
const data = await resp.json();
{
"message": "GitHub account disconnected"
}
Deletes the stored GitHub user tokens, effectively disconnecting the user’s GitHub account from Runtime.
Required scope:
integrations:write
string
required
Confirmation message.
curl -X DELETE "https://app.runtm.com/api/github-app/user-token" \
-H "Authorization: Bearer runtm_xxx"
import requests
resp = requests.delete(
"https://app.runtm.com/api/github-app/user-token",
headers={"Authorization": "Bearer runtm_xxx"},
)
print(resp.json())
const resp = await fetch("https://app.runtm.com/api/github-app/user-token", {
method: "DELETE",
headers: {
Authorization: "Bearer runtm_xxx",
},
});
const data = await resp.json();
{
"message": "GitHub account disconnected"
}