Quickstart
Follow these easy steps to start using InboxComponents
Step 1: Create an account
Step 2: Create an API Key
Step 3: Create a component
Step 4: Create a client
Step 5: Request a token
curl -X POST https://app.inboxcomponents.com/authentication/login_check \
-H "Content-Type: application/json" \
-H "X-API-KEY: YOUR_API_KEY" \
-d '{
"componentId": "YOUR_COMPONENT_ID",
"clientId": "YOUR_CLIENT_ID"
}'
use GuzzleHttp\Client;
$client = new Client();
$response = $client->post('https://app.inboxcomponents.com/authentication/login_check', [
'headers' => [
'Content-Type' => 'application/json',
'X-API-KEY' => 'YOUR_API_KEY',
],
'json' => [
'componentId' => 'YOUR_COMPONENT_ID',
'clientId' => 'YOUR_CLIENT_ID',
],
]);
$body = json_decode($response->getBody(), true);
echo 'Token: ' . $body['token'];
Step 6: Embed the component
🎉 All set!
Last updated