Get current project
GET
/projects/current
const url = 'https://api.siteassist.io/v2/projects/current?apiKey=sa_pk_1234567890abcdef';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.siteassist.io/v2/projects/current?apiKey=sa_pk_1234567890abcdef'Return the current project identified by the provided publishable API key. Useful for initializing client SDKs with project configuration like chat widget settings.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”apiKey
required
Publishable API key identifying the project
string
Example
sa_pk_1234567890abcdefResponses
Section titled “Responses”Successfully retrieved the project
Media typeapplication/json
The current project object including effective chat widget configuration.
object
object
string
id
required
string format: uuid
name
required
string
description
required
string
chatWidgetConfig
required
object
welcomeMessage
required
string
inputPlaceholder
required
string
userMessageBubbleColor
required
string
userMessageBubbleColorDark
required
string
brandColor
required
string
brandColorDark
required
string
displayName
required
string
width
required
number
maxHeight
required
number
offset
required
object
x
required
number
y
required
number
position
required
string
bubbleRadius
required
number
baseFontSize
required
number
openDelay
required
number
assistantAvatar
string format: uri
chatButtonIcon
string format: uri
chatButtonColor
string
customCSSStyles
required
string
Example
{ "id": "e2c6b2ad-9b1f-4f3c-8f5a-9f2a7b1c2d3e", "name": "Acme Inc", "status": "active", "chatWidgetConfig": { "position": "right", "theme": "light", "welcomeMessage": "Hi! How can we help?" }}Bad request
Unauthorized
Forbidden
Requested resource not found.
Internal server error