Integrating AI hairstyles into your Salon Software
Are you a salon software provider looking to give your customers a competitive edge? Integration with AIHairstyles can transform how salons and barber shops engage with their clients, offering cutting-edge AI-powered hairstyle generation directly within your platform.
This comprehensive guide will walk you through everything you need to know to successfully integrate AIHairstyles into your salon management software.
What you'll get
- A whitelabel AI hairstyles integration for your salon software
- AI hairstyles studio embedded directly into your app or website for your customers
- A branded AI hairstyles experience for your customer's clients
A comprehensive demo showing the AI Studio integration workflow for salon management software, including client photo upload, AI processing, and hairstyle recommendation display.
Table of Contents
note: API documentation can be found in full here
Creating an "enterprise" in aihairstyles for your customer
Embedding the AI hairstyles studio into your B2B software
Embedding the client widget into your B2C software
Getting a partner API key
Contact our partnership team to obtain your partner API key that allows you to create and manage businesses for your salon customers. Get in touch
Creating a business
For each business customer you'd like to provide AI hairstyle functionality for, the first thing to do is create an account or "business" in the aihairstyles system. So if your customer's business name is Cool Barbers Inc, create a business with that name in aihairstyles.
You can do this two ways. You can log in, visit the business page, and choose the appropriate type of business.
Alternatively, you can use your partner API key along with the Create Enterprise endpoint to quickly create a new business in aihairstyles.
Whatever way you choose, at a minimum you'll want to persist the slug for the new business in your database, along with the enterprise API key.
You can see the slug to save in the URL after the org/
when you create a business. For example in aihairstyles.com/org/some-cool-barbers/overview
, the slug to persist is some-cool-barbers
.
// The response you'll get from the API to create an enterprise
{
"data": {
"enterprise_id": "e9b52118-fbc3-40fa-ba5f-9edc620cff93",
"enterprise_name": "some-cool-barbers",
"enterprise_brand_name": "Some Cool Barbers",
"widget_id": 3,
"api_key": "ak_ca6df817837b600f982441cb67beaa6300dcae0a847445e899eb95cfd37f46af",
"owner_email": "owner@coolbarbers.com",
"links": {
"enterprise_overview": "https://aihairstyles.com/org/some-cool-barbers",
"widget_management": "https://aihairstyles.com/org/some-cool-barbers/widgets/3",
"widget_embed": "https://aihairstyles.com/studio-widget?widget_id=3"
}
},
"message": "Enterprise created successfully",
"status": "success"
}
Client management via API
Once you have an business set up for your customer in the aihairstyles system, you'll want to create and manage their clients. For this, we provide a number of client management endpoints, like creating, updating, adding media (input images), and of course retrieving AI generations for that client.
You can use these endpoints to pull the generated images for your customer into your salon software.
Note that the API key you should use for these operations are enterprise API keys, not the partner API key you used in previous steps. Enterprise keys are specific to each enterprise (business).
Client Management Endpoints
These are the endpoints to be aware for for client management in aihairstyles. Full documentation here
- List clients GET
/api/v1/enterprise/{enterprise_name}/clients
- Create client POST
/api/v1/enterprise/{enterprise_name}/clients
- Fetch client details GET
/api/v1/enterprise/{enterprise_name}/clients/{client_id}
- Fetch client generations GET
/api/v1/enterprise/{enterprise_name}/clients/{client_id}/generations
Embed the aihairstyles studio into your SaaS
An example of how an integration can work in your salon software
To bring real-time AI hairstyles generation into your salon management software, the easiest way is to embed the AI studio via an iframe or new tab.
To do this you'll need to authenticate a user into the platform using the endpoint below. docs
POST /api/v1/enterprise/{enterprise_name}/login-link
What you'll receive back will look like the below. Note the login_url property.
{
"login_url": "https://aihairstyles.com/login-link?token=4e94af49cf43694b741ca470c9cdcfccc40bf44a1fa67f953304a5bb&type=magiclink&next=http%3A%2F%2Flocalhost%3A3000%2Fdashboard%2Fclients",
"message": "Login link generated successfully"
}
Using this login url you can open a new tab or an embedded iframe. The user will be authenticated and redirected to wherever you specified in the original request.
What this enables is an interactive AI studio for Salon staff to quickly open and generate AI hairstyles for their clients.
Embedding an AI widget for Salon clients
In the last section we saw how we can embed the enterprise AI studio into a Salon software.
With aihairstyles.com you can also embed a consumer-focused widget, branded in your customers colours and logos, that their clients can interact with.
Any input images the client uploads, and any images they generate, will be available to the salon staff in the enterprise account.
Got questions, suggestions or feedback? We're eager to hear from you. contact us here