Getting Started
Prerequisites
- API User Account: You need an active API User with appropriate permissions
- API Token: The 80-character Bearer token from the API User
- Workflow Access: API User must have permission to submit to the target workflow
- Form Structure: Understanding of the workflow's form fields and requirements
Important: API Users vs Normal Accounts
Account Type Requirements
API users are created without a password and are intended for machine/service access only. They are separate from regular OSPROV accounts and should not be used for browser-based login. Use API user accounts exclusively for API calls with Bearer token authentication.
Normal OSPROV Account:
- Uses
webguard for browser-based access - Authenticates with username/password or SSO
- Designed for human users accessing the web interface
API User Account:
- Intended for API access
- Authenticates with 80-character Bearer token
- Created without a password, so it is not intended for web login
- Designed specifically for programmatic/system access
What This Means
If you're "John Doe" with a normal OSPROV account:
- ❌ Do not use your normal login credentials for API submissions
- ✅ Admin must create separate "API User" (e.g., "John's Integration Account")
- ✅ You use that API User's token for programmatic submissions
- ✅ Both accounts can exist simultaneously for different purposes
This separation maintains a clear distinction between human users and system integrations.
Basic API Request
Endpoint Format:
POST /api/submissions/workflow/{workflow_id}
Required Headers:
Content-Type: application/json
Authorization: Bearer YOUR_API_TOKEN
The Accept: application/json header is optional but recommended as a convention.
Optional Header:
Accept: application/json
Basic Request Example:
curl -X POST "https://your-domain.com/api/submissions/workflow/123" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-api-token-here" \
-H "Accept: application/json" \
-d '{
"name": "John Doe",
"email": "john@example.com",
"phone": "+1234567890"
}'
Next Steps
- Set up API Users: Work with your administrator to create API user accounts
- Understand Authentication: Learn how to properly authenticate your requests
- Study Request Formats: Understand how to structure your JSON data
- Review Examples: Look at real-world integration scenarios
- Test Your Integration: Start with simple requests and build complexity