Headless 360 practice exercises: APIs, CLI and agent access
Headless 360 means using Salesforce through APIs, the CLI and MCP, not only through the browser. These exercises build the skills it depends on. Several MCP features are new or in beta, so check the current Salesforce documentation for exact setup steps.
All exercises use the data model from our real estate practice project: Property__c, Buyer__c, Agent__c, Property_Agent__c and Property_Offer__c. Build Task 1 of that project first (about an hour), in a free Developer Edition org. Each exercise has a level, a check so you know it works, and a model answer to open after you have tried.
Exercises
1. Work with your org from the CLI
BeginnerInstall the Salesforce CLI, log in to your Developer Edition org, query properties, and create a record from the command line.
- The query prints a table of properties.
- The created record appears in the org.
Show a model answer
sf org login web --alias practice
sf data query --query "SELECT Id, Name, Asking_Price__c FROM Property__c" --target-org practice
sf data create record --sobject Property__c --values "Name='CLI House' Asking_Price__c=250000" --target-org practice2. Prove the rules still apply
BeginnerThrough the CLI or the REST API, try to create an offer below 70% of the asking price.
- The API returns the same validation error users see in the browser.
Show a model answer
Validation rules, flows, triggers and sharing all run for API and MCP access. This is why data quality rules belong in the platform, not only in a user interface.
3. A least-privilege agent user
IntermediateCreate a user for external agents with the minimum access: read properties, create offers, no access to Seller Legal Notes or commission rates. Use a permission set, not a custom profile.
- Log in as that user (or run a query as them through the CLI) and confirm the restricted fields are not returned.
Show a model answer
Start from the Minimum Access profile and grant everything through permission sets or a permission set group. Any agent or integration connected as this user, through APIs or MCP, can only see and do what this user can.
4. Make your metadata agent-readable
IntermediateWrite descriptions for every object and field in the data model, and for every invocable action and flow variable you built in other exercises.
- Pick five fields at random: someone new could tell what each holds from its description alone.
Show a model answer
AI agents use names and descriptions to choose fields and actions. "Asking price in the listing currency, before any discount" is far more useful than "Price".
5. Call an action from outside
AdvancedCall your Estimate Commission invocable action through the REST API endpoint for custom actions, instead of from a flow.
- The API returns the commission for the amount and agent you send.
Show a model answer
POST /services/data/vXX.X/actions/custom/apex/CommissionAction
{
"inputs": [ { "amount": 400000, "agentId": "a01..." } ]
}One well-built action can serve Flow, Agentforce, the API and MCP clients, which is the idea behind Headless 360.
6. Connect an MCP client (if available)
AdvancedIf your org has Salesforce's hosted MCP servers available, follow the current Salesforce documentation to connect an MCP-compatible client as your agent user, and ask it to list properties under a price.
- The client only returns data the agent user can see.
Show a model answer
Exact steps depend on the release and whether the feature is in beta in your org. Whatever the steps, the checks are the same: OAuth as a least-privilege user, only the tools you need enabled, and the same sharing and field-level security as everywhere else.
Keep going
Common questions
01Is Headless 360 something I can study for an exam?
Is Headless 360 something I can study for an exam?
Not as a separate exam at the time of writing. The skills behind it (APIs, the CLI, security for integration users and invocable actions) are covered in developer, integration and Agentforce certifications.
02Why practise this now?
Why practise this now?
More teams connect AI agents and developer tools to Salesforce. Candidates who can explain how those connections stay secure stand out in interviews.