Repository Public
1<!-- source: https://docs.x.ai/console/faq/security (from https://docs.x.ai/llms-full.txt, retrieved 2026-09-19T05:28:55Z) -->2#### FAQ34# Security56## Does xAI train on customers' API requests?78> [!NOTE]9>10> xAI never trains on your API inputs or outputs without your explicit permission.1112API requests and responses are temporarily stored on our servers for 30 days in case they need to be audited for potential abuse or misuse. This data is automatically deleted after 30 days.1314## Is the xAI API HIPAA compliant?1516To inquire about a Business Associate Agreement (BAA), please complete our [BAA Questionnaire](https://x.ai/legal/baa). A member of our team will review your responses and reach out with next steps.1718## Is xAI GDPR and SOC II compliant?1920We are SOC 2 Type 2 compliant. Customers with a signed NDA can refer to our [Trust Center](https://trust.x.ai/) for up-to-date information on our certifications and data governance.2122## Do you have Audit Logs?2324Team admins are able to view an audit log of user interactions. This lists all of the user interactions with our API server. You can view it at [xAI Console -> Audit Log](https://console.x.ai/team/default/audit?utm_source=docs\&utm_medium=referral\&utm_campaign=console-faq-security\&utm_content=audit).2526The admin can also search by Event ID, Description, or User to filter the results shown. For example, this is to filter by description matching `ListApiKeys`:2728You can also view the audit log across a range of dates with the time filter:2930## How can I securely manage my API keys?3132Treat your xAI API keys as sensitive information, like passwords or credit card details. Do not share keys between teammates to avoid unauthorized access. Store keys securely using environment variables or secret management tools. Avoid committing keys to public repositories or source code.3334Rotate keys regularly for added security. If you suspect a compromise, log into the xAI console first. Ensure you are viewing the correct team, as API keys are tied to specific teams. Navigate to the "API Keys" section via the sidebar. In the API Keys table, click the vertical ellipsis (three dots) next to the key. Select "Disable key" to deactivate it temporarily or "Delete key" to remove it permanently. Then, click the "Create API Key" button to generate a new one and update your applications.3536xAI partners with GitHub's Secret Scanning program to detect leaked keys. If a leak is found, we disable the key and notify you via email. Monitor your account for unusual activity to stay protected.37