Skip to main content

List Microsoft Graph credentials

Retrieve Microsoft Graph app-only credentials saved for your account. Use this endpoint to find the credential_id required when connecting Microsoft mailboxes in bulk.

The response does not include client secrets.

Request

Endpoint

GET https://api.woodpecker.co/rest/v2/mailboxes/microsoft/credentials

Headers

x-api-key: {YOUR_API_KEY}

For details on how to authenticate your requests, please see the authentication guide.

Request samples

Retrieve credentials

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/mailboxes/microsoft/credentials" \
--header "x-api-key: {YOUR_API_KEY}"

Response

Response examples

Request processed successfully. If there are no credentials saved in your account, an empty credentials array will be returned.

{
"credentials": [
{
"credential_id": 22334455,
"tenant_id": "bbfb2db7-aaf4-4f7c-9dc2-2c9160d1cb32",
"client_id": "e1c6ac69-480e-4a17-9b85-3467967bd179",
"secret_expires_at": "2027-11-28T23:59:59Z",
"name": "MS Graph app"
}
]
}

Body schema

FieldTypeDescription
credentialsarraySaved Microsoft Graph credentials
  └─credential_idintegerCredential ID to use when connecting Microsoft mailboxes
  └─tenant_idstringMicrosoft Entra tenant ID
  └─client_idstringMicrosoft Entra application client ID
  └─secret_expires_atstringClient secret expiration date in ISO 8601 format
  └─namestringCredential name