Using the Mobile Locker AI Assistant API

Mobile Locker AI Assistant is a premium feature with additional recurring costs.

Contact your account manager for more information.

First, create an API token. This will be your Bearer token. Keep it secret because it has full access to your account. We suggest creating the API token for a user with the Team Member role. Do not create the API token for a user with the Team Administrator role.


Next, go to the Content Library and click the Ask AI button to ask a question.

Use Chrome Dev Tools to inspect the response payload.

Sample cURL request

curl 'https://app.mobilelocker.com/api/haystack/ask' \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -H ‘Authorization: Bearer [TOKEN]' \
  --data-raw '{"question":"What is Mobile Locker?"}'

Sample API Response

{
    "id": 472,
    "team_id": 1,
    "user_id": 3,
    "feedback": null,
    "rating": null,
    "request_type": "query",
    "request_data": {
        "question": "What is Mobile Locker?"
    },
    "response_data": {
        "query": "What is Mobile Locker?",
        "answer": {
            "answer": "Mobile Locker is an HCP Engagement Platform explicitly designed for pharmaceutical and life sciences companies, streamlining how teams create, share, and track content\u2014empowering reps, MSLs, and marketers to connect with healthcare professionals effectively.",
            "confidence": "high",
            "sources": [
                {
                    "presentation_id": 31722,
                    "relevance": "direct"
                }
            ],
            "answer_found": true
        },
        "meta": {
            "index": "global_production_team_1_presentations",
            "top_k": 5,
            "model": "meta-llama\/Llama-3.2-3B-Instruct",
            "embedding_model": "sentence-transformers\/all-MiniLM-L6-v2",
            "elapsed_time": 3.2211642265319824
        }
    },
    "urls": [
        {
            "presentation_id": 31722,
            "relevance": "direct",
            "admin_url": "https:\/\/app.mobilelocker.com\/admin\/presentations\/31722?haystack_request_id=472",
            "browser_url": "https:\/\/app.mobilelocker.com\/v2\/app\/content\/31722\/open?haystack_request_id=472",
            "mobile_url": "https:\/\/app.mobilelocker.com\/v2\/mobile\/31722\/open?haystack_request_id=472",
            "external_app": "mobilelocker:\/\/x-callback-url\/open-presentation?presentation_id=31722&haystack_request_id=472",
            "external_url": "https:\/\/app.mobilelocker.com\/external\/user\/presentations\/31722\/open?haystack_request_id=472"
        }
    ],
    "created_at": "2025-09-02T15:32:30+00:00",
    "updated_at": "2025-09-02T15:32:33+00:00"
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us