# Getting Started

### Video

{% embed url="<https://youtu.be/JFEY3M2RMSk>" %}

### Steps

1. Visit [servicemocks.com](https://servicemocks.com)&#x20;
2. Click the "Log In" menu item in the upper right
3. Click "Create Account" button, fill out the form, and submit if you haven't created an account yet.
4. Enter your email and password and submit if you already have an account.
5. Service mocks will automatically create a "hello-world" service for you when you create an account.
6. Click on "hello-world" in the left nav.
7. Click on the "Mock" tab
8. Expand the "default" environment
9. Service Mocks will automatically add "GET /hello-world" resource for you when you create a new service.
10. Expand the resource labeled "GET /hello-world"&#x20;
11. Click the "Add Response" button, enter a "Name" of "Success"
12. Click on the "Return" tab, then the "Status/Headers" menu item and select "200".
13. Click on the "Body" menu item, and fill set it to `{"hello": "world"}`and click the "Add" button.
14. Add another response using steps 11-14 again, but name it "Bad Request", select "400" for the "Status" and set the "Body" to `{"bad": "request"}`
15. Scroll to the top of your open "default" environment pane and copy the mock URL which should look like:  [https://servicemocks.com/m/\<account-name>/hello-world/1.0.0/default](https://servicemocks.com/m/jgaerke/first-service/1.0.0/default/hello-world) where the \<account-name> is matches what you used in your account creation step.
16. Open Postman or cURL, paste this URL, concatenate "/hello-world" to it.
17. Send a request. You should see a "Status" of "200" and a body of`{"hello": "world"}`
18. Open the console again and toggle "Bad Request" as the active response.&#x20;
19. Repeat step 17 but this time you should see a "Status" of "400" a body of `{"bad": "request"}`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servicemocks.com/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
