Retrieves a service credential with a specified ID.
Service credential retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
const credential = await api.serviceCredentials.get({type: 'webhook', id: 'service-credential-1'}); console.log(credential.fields.status);
{- "id": "crd_0YV9Y706QGCB39FQD380G1ZHZH",
- "hash": "crd_0YV9Y706QGCB39FQD380G1ZHZH",
- "status": "active",
- "deactivationTime": "2019-08-24T14:15:22Z",
- "type": "smtp",
- "host": "string",
- "port": 25,
- "encryption": "none",
- "auth": {
- "type": "none"
}, - "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}