curl https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/contact \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"contact": {
"email": "it@acme.com",
"verified": true
}
}
{ "code": 16, "message": "unauthenticated" }
API
Get workspace contact
The workspace’s administrative contact email
curl https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/contact \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"contact": {
"email": "it@acme.com",
"verified": true
}
}
{ "code": 16, "message": "unauthenticated" }
Returns the workspace’s Administrative Contact Email from workspace settings, which Macroscope uses for policy updates, support issues and important account information. Returns
See Errors for the rest.
404 when the workspace does not have this setting.
Authorization
Requires an Admin API key, or an OAuth sign-in with Admin access by a person who is a workspace admin. Read and Write keys get403, and a sign-in with Read or Write access gets an insufficient_scope challenge for macroscope:admin.
Bearer <key>. See Authentication.Path parameters
Response
Errors
| HTTP | Meaning |
|---|---|
403 | Your credential or your permissions do not allow reading the contact |
404 | The workspace does not have this setting |
curl https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/contact \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"contact": {
"email": "it@acme.com",
"verified": true
}
}
{ "code": 16, "message": "unauthenticated" }