A jobs credential lets a Salesforce org submit work to the 3B AI service and collect the results later. A 3B administrator issues it for the customer's org and region. If you've already received yours, go to Configure 3B Onboarding in Salesforce.
00D. If Setup displays 15 characters, retrieve the 18-character ID through the Salesforce API with SELECT Id FROM Organization LIMIT 1. Find your Salesforce organization ID.30 for a 30-day evaluation. Leave the field blank only if the credential should have no expiration.b3o__Onboarding_Default_Settings__c).b3o__AI_Service_Credential__c). Paste it as issued. The integration adds the Bearer prefix when it sends a request.https://ai.3bapi.com/ai. For a regional service, enter the endpoint supplied by 3B and allow its host in Setup > Remote Site Settings. The packaged X3B_AI remote site covers the standard host.From a server-side integration or an API client, request one finished result from the same regional host that issued the credential. This read-only check does not call an AI provider or acknowledge any results.
GET /v1/jobs/results?limit=1 HTTP/1.1
Host: <your-ai-service-host>
Authorization: Bearer <your-jobs-credential>
HTTP 200 confirms the service accepted the credential. For a newly onboarded org with no results waiting, expect this response.
{ "results": [], "more": false }
If a result is already waiting, the response can contain it. Leave it for the integration that submitted the job.
3B Onboarding bots submit jobs and collect their results automatically. If you're building a custom integration, use the same bearer header for every jobs request. For example, an org using OpenAI can submit a short summary request with its own configured model and encrypted supplier key.
POST /v1/jobs HTTP/1.1
Host: <your-ai-service-host>
Authorization: Bearer <your-jobs-credential>
Content-Type: application/json
Idempotency-Key: <unique-work-item-key>
{
"vendor": "openai",
"apiKey": "<your-encrypted-supplier-key>",
"model": "<your-configured-model>",
"maxTokens": 256,
"messages": [
{ "role": "user", "content": "Summarize this update in one sentence: the induction is complete and the start date is confirmed." }
]
}
| Action | Request | What to do with the response |
|---|---|---|
| Submit work | POST /v1/jobs |
Save the jobId returned with HTTP 202. When retrying the same submission, reuse its Idempotency-Key. While the job is retained, the service returns HTTP 200 and the original jobId. |
| Check one job | GET /v1/jobs/<job-id> |
Check status. A queued or active job is still in progress. A completed or failed job includes its result. |
| Collect finished work | GET /v1/jobs/results |
Verify each signed result before acting on it. Track processed job IDs so reading the same result twice does not repeat an action. |
| Acknowledge saved results | POST /v1/jobs/ack |
After saving the outcome, send {"jobIds":["<job-id>"]}. Acknowledgement removes the stored job and result. |
| Cancel a job | DELETE /v1/jobs/<job-id> |
HTTP 204 confirms removal. If the provider call is already running, it can finish and its result is discarded. |
To renew access, issue a new credential for the same org and region before the recorded UTC expiration. Replace AI Service Credential in the organization defaults and repeat the access check with the new value. Each credential has its own ID and expiration. To retire the old credential, give its Credential ID to the 3B administrator responsible for revocation.
If a credential was sent to the wrong recipient or may have been exposed, request revocation immediately. Share the Credential ID with support and keep the full jobs credential in your secure handoff channel.
| What you see | What to do |
|---|---|
| The onboarding form rejects the org ID. | Confirm you have the target org's full 18-character ID starting with 00D. |
| The browser asks you to sign in again, or the page says Admin access is not configured. | Confirm you opened the AI admin page for the intended region. Ask the 3B service administrator to confirm your admin access. |
| You left Credential issued before copying the value. | Issue a replacement. If you recorded the unused credential's ID, give it to the 3B administrator to retire. |
The access check returns 401 INVALID_CREDENTIAL. |
Check the regional host and the UTC expiration. Copy the full Jobs API credential into the bearer header. The Credential ID is only a reference. If access is still denied, request a replacement. |
| A bot reports that AI Service Credential must be set. | Open the organization-level Onboarding Default Settings in the org running the bot, save the issued value and resume the run. |
| The access check succeeds, but a job reports a provider authentication error. | Check AI Provider and AI Supplier Key for the customer's provider account. The access check tests only the connection to the 3B jobs service. |