API Authentication and Getting Started
Loomstack provides a REST API for building custom integrations and automations. This guide covers authentication and basic usage.
Getting Started
Prerequisites
- Loomstack Pro or Enterprise plan
- API access enabled (contact sales@loomstack.com)
- Your workspace ID
- An API key
Generating an API Key
-
Go to Settings > API & Integrations > API Keys
-
Click + Generate Key
-
Name your key (e.g., “Mobile App Integration”)
-
Select permissions:
read:projects- Read project dataread:tasks- Read task datawrite:tasks- Create and update tasksread:users- Read team member informationwrite:users- Manage team membersread:reports- Access reporting data
-
Click Create
-
Copy and save your key securely (you won’t see it again)
API Key Security
- Store keys in environment variables, not in code
- Rotate keys every 90 days
- Revoke keys for deleted applications
- Use minimal required permissions
- Never commit keys to version control
Authentication
Include your API key in all requests:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.loomstack.com/v1/projects
Base URL
All API endpoints use:
https://api.loomstack.com/v1
HTTP Methods
GET- Retrieve dataPOST- Create new resourcesPUT- Update existing resourcesDELETE- Remove resourcesPATCH- Partial updates
Response Format
All responses are JSON:
{
"success": true,
"data": {
"id": "proj_123",
"name": "Website Redesign",
"description": "Q1 2024 redesign project"
}
}
Rate Limiting
- Standard rate limit: 1000 requests per minute
- Pro rate limit: 5000 requests per minute
- Enterprise: Custom limits available
Responses include rate limit headers:
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1234567890
Error Handling
Error responses include status codes and messages:
{
"success": false,
"error": {
"code": "INVALID_PROJECT_ID",
"message": "Project not found"
}
}
Common status codes:
200- Success201- Created400- Bad request401- Unauthorized (invalid API key)404- Not found429- Rate limit exceeded500- Server error
Next Steps
Support
Having issues with API authentication?
- Check API status at status.loomstack.com
- Email api-support@loomstack.com
- See API docs at developers.loomstack.com