/v1/workspaces/{workspace_id}/integrations/{provider}AuthGet a single integration detail with redacted credentials.
Includes the provider's `credentials_redacted` view. Secret fields (access tokens, signing keys) are never included.
Path parameters
workspace_id*string · uuidId of the workspace.
provider*stringThe integration provider (`github`).
Response · 200
provider*stringIntegration provider id.
Example: "github"
display_name*stringDisplay name of the provider.
Example: "GitHub"
account_login*stringAccount login at the provider that was connected.
Example: "octocat"
account_avatar_url*string · uriAvatar of the connected account; null when the provider has none.
Example: "https://avatars.githubusercontent.com/u/1?v=4"
status*objectConnection health: `active`, `error` (the last call failed) or `revoked` (access was withdrawn at the provider).
Example: "active"
last_error*stringSurfaced when status is 'error' — last failure message.
last_synced_at*string · date-timeWhen the last successful sync ran. null until first success.
settings*objectProvider-specific non-secret settings (e.g. selected repo / branch / path).
updated_at*string · date-timeWhen the connection was last changed.
credentials_redacted*objectProvider's redacted credential view — public identifiers + a 'token_present' boolean. Secrets NEVER round-trip.
Example
Request
GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/integrations/{provider}
Authorization: Bearer YOUR_TOKENResponse
{
"provider": "github",
"display_name": "GitHub",
"account_login": "octocat",
"account_avatar_url": "https://avatars.githubusercontent.com/u/1?v=4",
"status": "active",
"last_error": "string",
"last_synced_at": "2026-01-01T00:00:00.000Z",
"settings": {},
"updated_at": "2026-01-01T00:00:00.000Z",
"credentials_redacted": {}
}