Developer
What is Developer & API?
The Developer page connects Saifa AI with external business systems such as CRMs, ERPs, websites, back-office applications, analytics tools, and automation platforms. Administrators and developers can issue API keys, review the API reference, and configure events that send data from Saifa AI to selected destinations.
Security recommendation: Limit access to authorized administrators or developers. Never share API keys through chat or email, or store them in public documents.
How to open the Developer page
Sign in to Saifa AI.
Open Settings.
Select Developer.
Choose Overview, API keys, Events, Gateways, Delivery log, or API reference.

1. Overview
Overview contains the Base URL and the recommended onboarding sequence.
Getting started:
Create an API key.
Verify the connection with
GET /workspace.Review endpoint details and schemas in API reference.
2. API keys
API keys authenticate external systems that call the Saifa API.

Create an API key
Open API keys.
Click Create API key.
Enter a descriptive Key name, such as
CRM Production.Set the allowed requests per second and per minute.
Select only the permissions the integration requires.
Read access: Workspace, conversations, messages, and customers
Actions: Send messages, write to storage, or manage webhooks
Sensitive: Customer PII and other sensitive information
Review the settings and create the key.
Copy the secret immediately and store it in a secure secret manager.
Important: Permissions cannot be edited later. Create a replacement key and revoke the old key when permissions need to change.
3. Events
Events define which Saifa AI activities are sent to external systems, such as new messages, customers, leads, order status changes, or token usage.
Create an event
Create a Gateway first.
Open Events.
Click Create event.
Enter an event name.
Select the destination Gateway.
Choose the required event types.
Review and save.
Available categories include Inbox Messages, Conversations, Comments, Contacts, Leads, Orders, Bookings, Products/Services, AI Tokens, Subscription, and Settings/System.
4. Gateways
A Gateway is the destination that receives Event data. Configure it once and reuse it across multiple Events.
Add a Gateway
Open Gateways.
Click Add gateway.
Select a destination type.
HTTPS endpoint: Sends signed JSON via POST to a URL you control.
LINE OA: Delivers data as Flex Message cards to a connected LINE Official Account.
Enter a Gateway name.
For HTTPS, enter the Endpoint URL.
Choose whether to include message content.
Review and save.
Message content may contain personal data. Enable it only when required and when the receiving system has appropriate security controls.
5. Delivery log
Delivery log records Event delivery attempts, including the delivery time, event type, destination, status, and error details.
For failed deliveries, verify:
Endpoint URL
Gateway connectivity
Returned HTTP status
Signature or authentication handling
Receiving-system logs
6. API reference
API reference lists endpoints, methods, parameters, request bodies, responses, permissions, and implementation examples.
Open API reference.
Select a resource category.
Choose an endpoint.
Review its method, path, permission, and data schema.
Test safely before connecting a production system.

Recommended practices
Give keys and gateways descriptive system-and-environment names.
Apply least-privilege permissions.
Use separate credentials for production and testing.
Rotate keys and revoke unused credentials.
Never hard-code secrets in source code.
Record Request IDs and error responses for troubleshooting.
Review Delivery log after enabling a new Event.
Last updated

