DeliTools configuration and troubleshooting
This page helps you set up a client for DeliTools and fix errors. For field rules see the API reference.
Configure your client
- Base URL. Use the DeliTools API server URL that your service operator gives you. Procedures live at
/delitools.v1.DelitoolsService/Translateand/delitools.v1.DelitoolsService/Extract. - Protocol. Use a Connect client, or send JSON with
POSTandContent-Type: application/json. JSON field names use lowerCamelCase. - Credential. Send
Authorization: Bearer <credential>. Use a Delino login token, or an API key that starts withdlk_. Keep keys in server-side code. DeliTools does not support calls from browsers. - Tenant. A login token needs
tenantId. An API key already identifies its tenant; if you also sendtenantId, it must match. - Model. Use a model identifier that the operator allows. Extraction uses a fixed model and has no
modelfield. - Timeouts. Set a client timeout that suits your largest request. A provider call can take several seconds, and DeliTools can retry transient failures, so the full call can take longer. A request that exceeds the operator's execution timeout returns
ERROR_REASON_TIMEOUT; if your own timeout closes the call first, DeliTools treats it as a cancellation. - Retries. Retry on
ERROR_REASON_RATE_LIMITED,ERROR_REASON_DEPENDENCY_UNAVAILABLEandERROR_REASON_TIMEOUT, and onERROR_REASON_PROVIDER_FAILEDonly when the Connect code isunavailable, with exponential backoff and a small random delay. Every retry is a new execution that can be charged. See Billing. Do not retry unchanged requests that fail validation.
Fix an error
Common problems
- A key works in one request and fails in the next. A key that expired, was revoked, or belongs to a user who lost permission stops working immediately. Check it with
ListApiKeys. invalid_argumentwith the messagerequest body is invalid. DeliTools could not decode your JSON request body. Check that the body is complete, valid JSON and that every field has the documented type, for exampletextsas an array of strings. The message does not name the faulty field, so compare your request with the API reference. The response still carries a request ID.- A plain
resource_exhaustederror without a reason. Your request body is larger than the operator's overall size limit. Send less data. - A result looks wrong. Models can make mistakes, and a result that follows your schema is not necessarily correct. Make the instructions in your schema's
descriptionfields clearer and check important values. - Unexpected charges. Failed attempts with known usage and repeated requests are charged. See Billing.
- No usage visible yet. Usage reaches Delcore shortly after the call. Check again later.
Ask for support
Include the request ID from the response body or the X-Delitools-Request-Id header, the procedure name, the time and the error reason. Do not send your API key, your login token, or the texts you submitted.