POST
/
v1
/
credentials
curl --request POST \
  --url https://app.enzo.health/api/v1/credentials \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "credentials": {
    "data": {
      "host": "<string>",
      "username": "<string>",
      "password": "<string>",
      "isTlsEnabled": true,
      "port": 123,
      "from": {
        "email": "<string>",
        "name": "<string>"
      }
    },
    "type": "smtp",
    "organizationId": "<string>",
    "name": "<string>",
    "id": "<string>"
  }
}'
{
  "credentialsId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
credentials
object
required

Response

200
application/json
Successful response
credentialsId
string
required