> For the complete documentation index, see [llms.txt](https://vanguard-embedding-solutions.gitbook.io/ves/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vanguard-embedding-solutions.gitbook.io/ves/vanguard-embedding-solutions-devs/users.md).

# Users

Users controller have 2 endpoints:

<mark style="color:green;">GET /me</mark> &#x20;

Return data about the current user. It include fields: user address, and array vector collections with id, smart contract address, balance and boolean field “containsData” which indicate have this collection data or not

Example request:

<figure><img src="https://3537456676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiaoXkFJNtgMxQ59XY87F%2Fuploads%2F9kVBnvdx8VoiMrnptqxC%2F%D0%B2%D0%B5%D1%81%206.jpeg?alt=media&amp;token=0376f1b8-b1dd-481f-b4e2-ce2d4ab6d540" alt=""><figcaption></figcaption></figure>

Example response:

<figure><img src="https://3537456676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiaoXkFJNtgMxQ59XY87F%2Fuploads%2FhgP6lNDUlLj1jEPp2vpg%2F%D0%B2%D0%B5%D1%81%207.jpeg?alt=media&amp;token=e82577df-2177-499c-8760-451bec93dcaa" alt=""><figcaption></figcaption></figure>

*<mark style="color:orange;">!Id from vector collection using in another endpoints</mark>*

<mark style="color:green;">POST /withdraw/{withdrawAmount}/{vectorCollectionId}</mark>

This endpoint returns necessary data for smart contract to withdraw funds from your vector collection smart contract. It includes your address, amount in decimals, signature, timestamp in milliseconds while current signature is valid and databaseAddress(your vector collection smart contract address).

In summary, it returns all parameters which are used for generating signature and signature itself. Signature generated by this pattern -

address + databaseAddress + amount + validToTimestampInMs

Example request:

<figure><img src="https://3537456676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiaoXkFJNtgMxQ59XY87F%2Fuploads%2FKBqqdUlaKPtCtEFaT7pg%2F%D0%B2%D0%B5%D1%81%208.jpeg?alt=media&amp;token=dd23d74a-e341-4155-8f0b-a852129eafc6" alt=""><figcaption></figcaption></figure>

Example response:

<figure><img src="https://3537456676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiaoXkFJNtgMxQ59XY87F%2Fuploads%2FxRnbsfP4I3Hqxx3klHU7%2F%D0%B2%D0%B5%D1%81%209.jpeg?alt=media&amp;token=81a23738-c1e7-48f6-b296-8ccc95df5657" alt=""><figcaption></figcaption></figure>
