# Postman

### Sending a metric via HTTP POST

1. Open Postman.
2. Create a new request, set its type to *POST* and its *URL* to `https://www.hostedgraphite.com/api/v1/sink`

   <figure><img src="https://www.hostedgraphite.com/docs/_images/step2.png" alt=""><figcaption></figcaption></figure>
3. Go to the *Authorization* tab. For the authorization, type select *Basic Auth*. In the *username* field, enter your Hosted Graphite *API key*.

   <figure><img src="https://www.hostedgraphite.com/docs/_images/step3.png" alt=""><figcaption></figcaption></figure>
4. Go to the *Body* tab. Select *raw*, and enter a datapoint for your metric (you can send multiple datapoints as long as they are on separate lines). You may also include an optional Unix timestamp with your datapoint. A datapoint has the following parameters: `<metricName> <value> <optionalTimestamp>`

   <figure><img src="https://www.hostedgraphite.com/docs/_images/step4.png" alt=""><figcaption></figcaption></figure>
5. Click the *Send* button to send your datapoint. When your datapoint has been sent successfully, you will receive a response with status *202 Accepted*.

   <figure><img src="https://www.hostedgraphite.com/docs/_images/step5.png" alt=""><figcaption></figcaption></figure>

Your API key can be found on your [account home](https://www.hostedgraphite.com/accounts/profile/) page.


---

# 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.hostedgraphite.com/language-guide/postman.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.
