This API lets your company's internal systems or AI (such as a chatbot your company built, an internal portal, or a business system) search and read published Dive SOPs. It is called with a key (API key) issued by an owner. Each result includes a link that opens the SOP in Dive.
If a person uses an AI such as Claude or ChatGPT and wants to search and read SOPs with their own Dive account, please use AI connections (MCP). The API is a feature that reads from a company system using a company key. People who use that system do not need a Dive account (they need to log in to Dive to open videos).
Available on the Enterprise plan. Owners issue and set up keys from a PC browser. It is offered as a beta version.
※ Before you use this feature, be sure to read "Compliance Requirements and Disclaimer" at the bottom of this article. By using this feature, you are deemed to have agreed to its contents.
What the API can do
The API can search and read SOPs, and retrieve viewing records (only for keys where you choose this). You cannot create, edit, or delete SOPs with the API.
- Search: When you send a search term, the API returns the matching published SOPs, ordered by relevance. It searches the SOP title, step names, work details, tips, quality, safety, items used / document number, tags, the text of file-based SOPs, video subtitles, and so on. For each match, it returns an excerpt of the matched part and a link that opens the SOP in Dive
- Read: Returns the SOP title, document number, overview, items used, and the titles of related files, along with the work details, tips, quality, safety, and standard time of each step. For file-based SOPs (existing manuals such as PDFs), it returns the text of each page. Each step includes a link that opens that step in Dive
- Retrieve viewing records: Returns who viewed which SOP and when, and how they answered the questions (the same content as the CSV exported from "Viewing records" and then "Work records" for the SOP). This is only available with keys for which [Also allow reading viewing records] is selected (Import viewing records into internal systems (API, beta))
Search and read return only published SOPs within the key's scope (see "Scope of SOPs returned by a key" below). Drafts are not returned. Videos, images, and the contents of related files are not returned. Questions and the names of people, such as the creator, are not returned either.
Before you start (an owner issues a key)
An owner issues keys from a PC browser.
- Open [Owner Functions] in the side menu
- Select the [Integrations] tab at the top, then open [API (search and read SOPs)] (it is below [AI connections (MCP)])
- Click [Issue key]
- Decide the name, groups to show, source IP address, expiry, and whether to allow reading viewing records, then click [Issue] (for what each setting means, see "What to decide for each key" below)
- The issued key is displayed. Copy the key and the [API URL] into your internal system's settings, then click [I've copied it, close]
The key is displayed only once, at the moment it is issued. Once you close the screen, it cannot be displayed again. If you forget to copy it, revoke that key and issue a new one. Do not include the key in screenshots.
When a key is issued, an email is sent to all owners of the team to notify them that a key has been issued. If you receive a notice about a key issue you do not recognize, revoke the key by following the steps under "Change or revoke a key" below.
The card is also displayed on plans other than Enterprise. If you click [Issue key], a plan guide is displayed.
What to decide for each key
- Name: A name that shows which system uses the key (up to 60 characters). Example: "Internal chatbot (production)"
- Groups to show: Sets the scope of SOPs that the key returns. See "Scope of SOPs returned by a key" below
-
Source IP address: The outbound address to the internet of the server that calls the API (where your internal system runs). Once registered, only calls from that address are accepted. You can register up to 20 entries, one per line: an IPv4 address, or a range from /16 to /32 (example:
203.0.113.0/24). This is required for teams that use IP address restriction - Expiry: Choose 30 days, 90 days, or 1 year (default: 1 year). The key expires on the expiry date at the same time of day it was issued. Expiry cannot be extended
- Also allow reading viewing records: If selected, this key can also retrieve viewing records (not selected by default). The name and email address of the person who viewed (for email-free accounts, the login ID), the questions and answers, and the completion comment are passed to the system that uses the key and to the people who use that system. For a system that many people use, such as a chatbot, do not select this; issue a separate key for the system that imports the records
A team can have up to 5 valid keys. If there are already 5, revoke a key you no longer use to issue a new one.
Scope of SOPs returned by a key (Groups to show)
A key returns only the published SOPs that a view-only user can see when searching on the Dive screen, where that user belongs to all the groups selected in [Groups to show]. SOPs in folders not restricted by group are always returned.
- If no group is selected, only SOPs in folders not restricted by group are returned
- If you select multiple groups, the scope is set as "one person who belongs to all of the selected groups." The scope may be broader than the sum of what each group's members can see
- It does not become the scope that owners and Team Administrators can see (all SOPs). SOPs in folders that none of the groups' members can see are not returned
- The team's [Folder view scope] setting applies in the same way as for view-only users (Allow viewing folders in subordinate groups (Folder view scope))
- If a selected group is deleted, that group is treated as if it does not exist
You can check the scope with the magnifying glass icon [Test with this key] on the key's row. Enter a word and click [Search], and the results searched within that key's scope (SOP titles and folders) are displayed. [Test with this key] is not counted as an API call.
Call the API
Call the API over HTTPS from your internal server. It cannot be called directly from a browser screen (JavaScript), because the key would end up in the page.
- API URL:
https://api.divedx.com/v1 - Specification (OpenAPI 3.0):
https://api.divedx.com/v1/openapi.json(readable without a key) - How to pass the key: add
Authorization: Bearer keyto the header
Responses may gain new fields in the future. Please build your system to skip any fields it does not recognize. While the API is in beta, the response format may change.
Search SOPs
Send the search term (query, up to 200 characters) and the number of results to return (limit, 1 to 20, default 5) as JSON to POST /procedures/search.
curl -X POST https://api.divedx.com/v1/procedures/search \
-H "Authorization: Bearer dapi_..." \
-H "Content-Type: application/json" \
-d '{"query":"フライヤー 清掃","limit":5}'
A list of SOPs is returned, ordered by relevance. If nothing matches, an empty list ("results": []) is returned.
{
"results": [
{
"id": "-NaBcD1",
"versionId": "-NxYzW9",
"version": 3,
"title": "フライヤーの清掃",
"documentNumber": "QC-012",
"folder": "清掃",
"kind": "steps",
"language": "ja",
"updatedAt": "2026-10-01T09:30:00+09:00",
"matches": [{ "field": "safety", "step": 3, "text": "…油が冷めてから…" }],
"url": "https://app.divedx.com/view/-NxYzW9?step=3"
}
],
"requestId": "req_…"
}
| Item | Description |
|---|---|
id |
The SOP ID. It does not change when the SOP is revised. Use it when reading the SOP |
versionId and version
|
The ID and version number of the currently published version |
title, documentNumber, and folder
|
The SOP title, document number, and the name of the folder that contains the SOP |
kind |
steps (SOP divided into steps) or file (file-based SOP) |
language |
The original language of the SOP (ja, en, zh-CN, etc.) |
matches |
The matched parts (field, step number or page, and excerpt). Up to 3 per result |
url |
A link that opens in Dive (you need to log in to Dive). If a step matched, the link opens from that step |
Read an SOP
Use GET /procedures/{id} with the id (or versionId) from the search results to read an SOP. It always returns the currently published version.
curl https://api.divedx.com/v1/procedures/-NaBcD1 \ -H "Authorization: Bearer dapi_..."
The main fields returned are as follows.
- Title, document number, overview (
description), items used (usedItems: name, part number, quantity, unit), and related files (relatedFiles: only the title and type of files set to be shown to viewers) - Steps (
steps): step number and name, work details (work), tips (tips), quality (quality), safety (safety), standard time (standardTimeSec, in seconds), and a link that opens that step in Dive (url) - For file-based SOPs (where
kindisfile), the text of each page (pages). For files whose text cannot be read, such as scanned PDFs, thenotefield tells you so
Long SOPs are returned cut off partway through. If truncated is true, call again with the fromStep in next (for file-based SOPs, fromPage) to get the rest. You can also specify the range to read with fromStep, toStep, fromPage, and toPage. If a single field is long, it is cut at 4,000 characters (one page of a file-based SOP at 8,000 characters) and "…" is added at the end.
If the SOP does not exist, is outside the key's scope, or has only a draft, the API returns 404 in each of these cases.
Rate limits
- Per key: up to 120 calls per minute and about 20,000 calls per day (Japan time). Per team: up to 600 calls per minute
- Retrieving viewing records has a further limit per key: up to 30 calls per minute and about 1,000 calls per day (Japan time)
- When a limit is exceeded, the API returns 429. Wait for the number of seconds in the
Retry-Afterheader, then call again - If calls are made repeatedly from the same source with unregistered keys, the API also returns 429 for a while
When an error occurs
Errors can be identified by the HTTP status code and the code in the response body (RFC 9457 format). When you contact us, please give us the X-Request-Id header from the response (the same as requestId in the body).
| Status | code | Main causes and remedies |
|---|---|---|
| 400 | invalid_request |
The body cannot be read, contains an unknown field, or has a value out of range. Check what you are sending |
| 401 | invalid_key |
The key is missing or wrong. Check the header format (Authorization: Bearer key) |
| 401 | key_expired |
The key has expired. Issue a new key and replace the old one |
| 401 | key_revoked |
The key has been revoked. Issue a new key and replace the old one |
| 403 | plan |
The team's plan does not allow the API (available on the Enterprise plan) |
| 403 | ip_not_allowed |
The call is coming from outside the source IP address registered for the key |
| 403 | ip_required |
The team uses IP address restriction, but no source IP address is registered for the key |
| 403 | insufficient_scope |
You are trying to retrieve viewing records with a key that is not set to allow reading viewing records |
| 403 | forbidden |
The call is coming from a browser. Call the API from your internal server |
| 404 | not_found |
The SOP does not exist, is outside the key's scope, has only a draft, or the URL is wrong |
| 405 | method_not_allowed |
The method is wrong (POST for search, GET for read) |
| 413 | payload_too_large |
The body is too large (up to 16 KB) |
| 429 | rate_limited |
The rate limit has been exceeded. Wait for the number of seconds in Retry-After
|
| 503 | unavailable |
Temporarily unable to process the request. Wait a while and call again |
Check usage (owners)
Open [Usage] on the [API (search and read SOPs)] card to check, for each key, the number of searches, reads, viewing-record retrievals, and errors made through the API over the last 7, 30, and 90 days. You can also check the number of reads for each SOP. Details that include the terms searched can be exported with [Export details as CSV].
Calls rejected because of a key's expiry, the plan, the source IP address, or the rate limit are also counted as "Errors," at most once per minute for the same key and the same reason. If calls from your internal system have stopped, you can check here.
Call records are kept for 400 days. Issuing, changing, and revoking keys, as well as records of details exported as CSV, are also kept in the audit log (Export audit log as CSV). Owners can check the terms searched through the API. Please notify the people who use your internal system on your side.
Change or revoke a key
- You can change the name, groups to show, source IP address, and whether to allow reading viewing records, using the pencil icon (Edit) on the key's row. The key value and expiry cannot be changed. When reading viewing records is allowed for an existing key, or the groups to show are changed for a key that can read viewing records, an email notification is sent to all owners
- To revoke a key, click the trash can icon (Revoke key) on the key's row, then click [Revoke key] in the confirmation prompt. A revoked key cannot be restored
- Changes and revocations take effect on API calls within about 30 seconds
- Revoked keys and expired keys are shown in the list for 30 days
Expiry and replacement
Owners are notified by email 30 days and 7 days before expiry (for keys that expire in 30 days, only 7 days before). Because expiry cannot be extended, issue a new key, replace the key in your internal system's settings, and then revoke the old key. During the replacement, both the new and old keys can be used.
When changing plans or starting to use IP address restriction
- If you change from Enterprise to another plan, API calls are rejected (
plan). Keys remain, and they can be used as before once you return to Enterprise. Viewing the key list and revoking keys remain available after changing plans - If you start using IP address restriction later, keys with no registered source IP address can no longer be used (
ip_required). Register an IP address from the pencil icon on the key's row, and the key can be used again - Source IP addresses registered to a key apply to that key only. They are not added to the team's IP address restriction allowlist and do not affect regular logins
Frequently asked questions
Q. What is the difference between AI connections (MCP) and the API?
A. AI connections let AIs in the list, such as Claude and ChatGPT, read with the permissions of the account you connected (Lite, Core, Pro, and Enterprise plans). The API lets your in-house system read within the scope of a key issued by an owner (Enterprise plan).
Q. Are SOPs read through the API recorded in viewing records?
A. No. Reading through the API is not counted in viewing records, solo completion judgments, or automatic skill evaluations. You can check API usage in [Usage].
Q. The content of a revision I just published is not being returned.
A. For a few minutes right after publishing, the API may return the text of the previous version. Wait a while and call again.
Q. Can I receive translated text?
A. No. SOPs are returned in their original language. The original language can be checked in language.
Q. Can I retrieve a list of all SOPs at once?
A. No. The API is designed to be used by searching and reading only when needed. This means you do not need to keep copies of SOPs inside your company: each time, the latest published version is read from Dive, so outdated SOPs do not remain in your company.
Q. Can I use it from our company's AI platform?
A. If the platform can read an OpenAPI (3.0) specification and make calls with a key in the Authorization header, you can register the API as a tool. For how to register it, please check the help for the platform you use.
Compliance Requirements and Disclaimer
This feature connects your systems with Dive. The Dive Terms of Use apply when you use it, and the compliance requirements and disclaimer in this section apply in addition to those terms. Please be sure to read the following items and use this feature only after you agree to them. If you use this feature, you are deemed to have agreed to the following items.
Matters concerning your systems and third-party services, such as the AI platform you use (design, development, configuration, operation, behavior, defects, and content of answers), are outside the scope we can handle, so they are not covered by support. Also, because this feature is in beta, inquiries about how Dive behaves will be handled only to the extent we can, at our discretion.
1. Key management
(1) A key is a company key that can read the text of the team's SOPs. Please manage key values strictly at your own responsibility. Do not place keys on browser-based screens, in published source code, in chats, in emails, or anywhere else.
(2) If a key has leaked, or there is a risk that it has, promptly revoke the key and issue a new one. We recommend registering source IP addresses.
(3) Promptly revoke keys that are no longer used.
(4) We accept no liability for damages arising from deficiencies in key management or the like.
2. Scope of SOPs provided and people who use your system
(1) The scope of SOPs that a key returns is determined by the groups an owner selects for each key and by the team's folder view settings. Please check the scope with [Test with this key] and set it at your own responsibility.
(2) SOP text returned by the API reaches the people who use your system (including people who do not have a Dive account). Please manage the display, storage, and scope of users of your system at your own responsibility.
(3) Terms searched through the API and SOPs read are recorded, and owners can check them. Please notify the people who use your system at your own responsibility.
(4) For keys set to allow reading viewing records, the name and email address of the person who viewed the SOP (for email-free accounts, the login ID), their answers to questions, and their completion comments are delivered to your system and to the people who use it. Please manage the display, storage, and scope of users of this information, and any notice to the people who viewed SOPs, at your own responsibility, in accordance with applicable laws and your company's internal rules.
(5) We accept no liability for information leaks or other damages arising from scope settings or deficiencies in the management of your system.
3. Accuracy of answers from your system and AI
(1) Answers that your system or AI creates based on text returned by the API may include summaries, paraphrases, omissions, or errors. An AI may also supplement answers with content that is not written in the SOP.
(2) Before performing work or making decisions, always check the original SOP using the Dive link attached to the answer. In particular, do not make decisions on safety- or quality-related content based only on the answer from your system or AI.
(3) We accept no liability for the results of work or decisions made based on answers from your system or AI, or for any accidents or damages arising from them.
4. Disclaimer regarding third-party services
Third-party services that you use to connect with the API (AI platforms, cloud services, etc.) are provided under the terms set by each provider. How SOP text sent to those services is stored, used, and reused for training AI models is governed by the terms and settings of each provider. Please be sure to check, at your own responsibility, that settings such as disabling training (opt-out) are in place. We make no guarantee regarding the safety of the communication paths, confidentiality of information, availability, or legality of those services. We accept no liability for failures, outages, or changes in specifications of those services, or for security issues or damages arising from their use.
5. No warranty, changes, and suspension
(1) This feature is provided as a beta version, and we make no warranty regarding completeness, accuracy, availability, usefulness, security, non-infringement of third-party rights, or fitness for a particular purpose.
(2) We may change the content and specifications of this feature (including response formats and rate limits) and the plans in which it can be used without notice, or suspend or end the provision of this feature. We accept no liability for damages caused to you by these changes. Please check the latest information and use the feature at your own judgment and responsibility.
6. Compliance with laws and terms
When using this feature, you shall comply with applicable laws, the Dive Terms of Use, the terms of the third-party services you use, and your company's internal rules.
Related articles
Allow viewing folders in subordinate groups (Folder view scope)