Skip to main content

Create credentials

POST 

/integration/credentials

JSON-RPC

integration.credentials.create

Request​

Bodyrequired

    companies_idintegerrequired

    Partition ID.

    namestringrequired

    Name.

    typestringrequired

    Connection type.

    Possible values: [ftp, ssh, sftp, imap, imap_microsoft, web, smtp]

    loginstring | nullnullable

    Username. Required if type is ftp, ssh, imap or web.

    Possible values: <= 255 characters

    Default value: null
    passwordstring | nullnullable

    Password. Required if type is ftp, imap or web. Additionally required for type smtp if login is provided.

    Default value: null
    hoststring | nullnullable

    Server hostname or IP address. Required if type is ftp, ssh, imap or smtp.

    Possible values: <= 255 characters

    Default value: null
    portinteger | nullnullable

    Server port. Required if type is ftp, ssh, imap or smtp.

    Possible values: >= 1 and <= 65535

    Default value: null
    smtp_securitystring | nullnullable

    SMTP security mode. Required if type is smtp.

    Possible values: [plain, tls, ssl]

    Default value: null
    imap_microsoft_settings object

    Microsoft IMAP settings. Required if type is imap_microsoft.

    client_idstringrequired

    Microsoft client ID.

    tenantstringrequired

    Tenant name.

    refresh_tokenstringrequired

    Refresh token.

Responses​

Credentials object as has been stored.

Schema
    objectobject

Authorization: X-Api-Key

name: X-Api-Keytype: apiKeyin: headerdescription: Token for API access
curl -L 'https://docs.jerasoft.net/integration/credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Api-Key: <X-Api-Key>' \
-d '{
"companies_id": 0,
"name": "string",
"type": "ftp",
"smtp_security": "plain",
"imap_microsoft_settings": {
"client_id": "string",
"tenant": "string",
"refresh_token": "string"
}
}'
Request Collapse all
Auth
Body required
{
  "companies_id": 0,
  "name": "string",
  "type": "ftp",
  "smtp_security": "plain",
  "imap_microsoft_settings": {
    "client_id": "string",
    "tenant": "string",
    "refresh_token": "string"
  }
}