GET
https://api.openint.dev/v1
/
ai
/
message_template
import Openint from '@openint/backend-sdk';

const client = new Openint({
  token: process.env['OPENINT_API_KEY_OR_CUSTOMER_TOKEN_OR_CUSTOMER_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const response = await client.getMessageTemplate({ customer_id: 'customer_id' });

  console.log(response.language);
}

main();
{
  "language": "<string>",
  "template": "<string>"
}

Authorizations

Authorization
string
header
required

Organization API Key available in the settings page of the OpenInt Console or Customer API Key or Token Customer authentication token created using the create customer token API. It is passed in the authorization header with format: Bearer {token}

Query Parameters

language
enum<string>
Available options:
javascript
use_environment_variables
boolean
default:false
customer_id
string
required

Response

200
application/json

Successful response

The response is of type object.