# How to get the source code

Note, this page contains shortcuts to each repository. If you are setting up the Platform for the first time, please follow our **setup guides** to set up the code **for your specific purpose:**

{% content-ref url="/pages/-M2-FPdvSiyXjkch9\_F2" %}
[Setup Guides](/platform-developer-documentation/dev-legacy-v3/development-and-code/setup_alternatives.md)
{% endcontent-ref %}

## Platform API

The API-source-code is found in the [Platform API repository.](https://github.com/ushahidi/platform)

To get the source-code, clone the code with:

```
git clone https://github.com/ushahidi/platform.git
```

## Platform Client

The Platform soure-code is found in the[ Platform Client repository](https://github.com/ushahidi/platform-client).

To get the source-code, clone the code with:

```
git clone https://github.com/ushahidi/platform-client.git
```

## Platform Pattern Library

The source-code for the Pattern Library is found in the [Platform Pattern Library repository](https://github.com/ushahidi/platform-pattern-library).

To get the source-code, clone the code with:

```
git clone https://github.com/ushahidi/platform-pattern-library.git;
```


---

# 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.ushahidi.com/platform-developer-documentation/dev-legacy-v3/development-and-code/how-to-get-the-source-code.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.
