meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| api [2026/04/11 21:49] – 68.162.129.20 | api [2026/09/10 16:47] (current) – link to developer.itflow.org wrongecho | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== API ====== | ====== API ====== | ||
| - | + | Use ITFlow' | |
| - | Use ITFlow' | + | |
| The current version of the ITFlow API is v1. It can be accessed at **itflow.example.com/ | The current version of the ITFlow API is v1. It can be accessed at **itflow.example.com/ | ||
| - | ===== Generating an API Key ===== | + | We are in the process |
| - | + | ||
| - | - Login and navigate to the **Admin Settings** page | + | |
| - | - Select **API Keys** | + | |
| - | - Select **Create** to open the New Key modal | + | |
| - | - On Details tab, input the key name and expiration date. Select whether the key will allow access to all clients or a specific client | + | |
| - | - On Keys tab, note down the API key and credential password and select the checkbox to confirm you've made a copy of the keys. You will not see these admin in the admin interface. | + | |
| - | - Select Create to add the key into the database | + | |
| - | + | ||
| - | ===== Modules with API support at present ===== | + | |
| - | + | ||
| - | * assets | + | |
| - | * certificates | + | |
| - | * clients | + | |
| - | * contacts | + | |
| - | * credentials (logins) | + | |
| - | * documents | + | |
| - | * domains | + | |
| - | * expenses | + | |
| - | * invoices | + | |
| - | * invoice_items | + | |
| - | * locations | + | |
| - | * networks | + | |
| - | * payments | + | |
| - | * products | + | |
| - | * quotes | + | |
| - | * software | + | |
| - | * tickets | + | |
| - | * vendors | + | |
| - | + | ||
| - | + | ||
| - | ===== API Functions ===== | + | |
| - | + | ||
| - | * read | + | |
| - | * create // | + | |
| - | * update // | + | |
| - | * delete // | + | |
| - | + | ||
| - | + | ||
| - | * //We may also add archive// | + | |
| - | + | ||
| - | ===== Request Methods ===== | + | |
| - | + | ||
| - | * GET - Retrieving (READ) data | + | |
| - | * POST - Inserting (CREATE), Updating (UPDATE) or Deleting (DELETE) data | + | |
| - | + | ||
| - | ==== Data Returned ==== | + | |
| - | + | ||
| - | * Success - True/ | + | |
| - | * Message - Failure info / Helpful debug info | + | |
| - | * Count - Count of rows affected/ | + | |
| - | * Data - The data requested/ | + | |
| - | + | ||
| - | + | ||
| - | ==== Notes ==== | + | |
| - | + | ||
| - | * For read requests, 50 records | + | |
| - | * For POST requests, the '' | + | |
| - | * Be sure to check your Apache/PHP error logs if you're running into issues | + | |
| - | + | ||
| - | ==== API Docs/ | + | |
| - | + | ||
| - | Documentation / an example | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | + | ||
| - | ====== API ====== | + | |
| - | + | ||
| - | Use ITFlow' | + | |
| - | + | ||
| - | The current version of the ITFlow API is v1. It can be accessed at **itflow.example.com/ | + | |
| ===== Generating an API Key ===== | ===== Generating an API Key ===== | ||
| Line 138: | Line 64: | ||
| * For POST requests, the '' | * For POST requests, the '' | ||
| * Be sure to check your Apache/PHP error logs if you're running into issues | * Be sure to check your Apache/PHP error logs if you're running into issues | ||
| + | * To prevent your server from accidentally logging API keys, see [[api_apache-logging|here]] | ||
| ---- | ---- | ||