Profiles
Create Profile
Creates a connection profile.
POST
header
x-api-key<token>Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.
application/json- body
name*stringProfile name. It must be unique in the workspace.
Length
1 <= length <= 60Created profile
application/json- response
profile*Example Request
import { Configuration, ConnectionsApi } from "@onepostly/sdk";const connectionsApi = new ConnectionsApi( new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await connectionsApi.createProfile({ body: { "name": "Business" },});console.log(response);Example Response
{ "profile": { "id": "5f1c5a2e-2f0d-4a3c-9a1e-6b7d8c9e0f12", "name": "Business", "tone": "blue", "connectionCount": 4, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}