Cobalt Connect
Generate Connect URL
POST
/
api
/
v2
/
public
/
connect-url
curl --request POST \
--url https://api.gocobalt.io/api/v2/public/connect-url \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"color": "<string>",
"bgColor": "<string>",
"name": "<string>"
}'
{
"hosted_url": "https://connect.gocobalt.io/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdfaWQiOiI2M2M5M2RhMGI0NmI3MjQzNzg1YTFlMTciLCJsaW5rZWRfYWNjb3VudF9pZCI6IjEyMzQ1Njc4IiwiZW52aXJvbm1lbnQiOiJ0ZXN0IiwiaWF0IjoxNjg2NzM1ODMxLCJleHAiOjE2ODY5OTUwMzF9.DOKY6iXkfjLcSK8vIqtQ1mHuh92pZMhlddladdovGL8"
}
Returns the connection URL in format: https://connect.gocobalt.io/{TOKEN}
Request description
Headers
Authorization
string
Unlike other API’s in this documentation. This api requires the session token as a bearer token. Please ommit the x-api-key
from the header of this api.
Header for Generate Connect URL api
Authorization: Bearer {SESSION TOKEN}
Body Parameters
color
string
Text Colour Hex
bgColor
string
Background Colour Hex
name
string
Customer name
Response description
200
500
hosted_url
string
Hosted Auth-Flow URL
curl --request POST \
--url https://api.gocobalt.io/api/v2/public/connect-url \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"color": "<string>",
"bgColor": "<string>",
"name": "<string>"
}'
{
"hosted_url": "https://connect.gocobalt.io/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdfaWQiOiI2M2M5M2RhMGI0NmI3MjQzNzg1YTFlMTciLCJsaW5rZWRfYWNjb3VudF9pZCI6IjEyMzQ1Njc4IiwiZW52aXJvbm1lbnQiOiJ0ZXN0IiwiaWF0IjoxNjg2NzM1ODMxLCJleHAiOjE2ODY5OTUwMzF9.DOKY6iXkfjLcSK8vIqtQ1mHuh92pZMhlddladdovGL8"
}