# KAS token url to integrate to Metamask problem

**URL:** <https://devforum.kaia.io/t/kas-token-url-to-integrate-to-metamask-problem/1383>\
**Category:** KAS (아카이브)\
**Created:** [7월 2, 2021, 8:17오전 UTC](https://devforum.kaia.io/t/kas-token-url-to-integrate-to-metamask-problem/1383 "2021-07-02T08:17:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobilova](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/tobilova/32/485_2.png) [@tobilova](https://devforum.kaia.io/u/tobilova)\
**Post date:** [7월 2, 2021, 8:17오전 UTC](https://devforum.kaia.io/t/kas-token-url-to-integrate-to-metamask-problem/1383/1 "2021-07-02T08:17:47Z")

</div>

Hi,

I registered Klaytn API Service and I would like to connect my Metamask account to Klaytn cypress node But KAS currently don’t have any format like [infura.io](http://infura.io) or any other Node 3rd service.

I would like to have a HTTP endpoint like  
`http://cypress.node:8621/<KAS-secret-token-here>`  
to easiler to connect metamask. Thanks!

---

<div class="post-metadata">

**Author:** ![\_Luffy](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/_luffy/32/33_2.png) [@\_Luffy](https://devforum.kaia.io/u/_Luffy)\
**Post date:** [7월 12, 2021, 1:48오전 UTC](https://devforum.kaia.io/t/kas-token-url-to-integrate-to-metamask-problem/1383/2 "2021-07-12T01:48:05Z")

</div>

@tobilova You can simply use authority described in [rfc3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1).

More specifically, you add a test network into your metamask as `https://{your-kas-auth}:{your-kas-secret}@node-api.klaytnapi.com/v1/klaytn?chain-id=8217`.

In above URL, 8217 indicates the chain ID of Klaytn Cypress network as you know.  
If you want to connect to Testnet, you can change it to 1001(Baobab’s chain ID).

You have to pay attention to the following things.

- If you are using credentials issued before June, authentication may fail due to a URL incompatible credential.
- If you publicly disclose your credential, you may incur a lot of charges.
  - To avoid overcharge, you can use [KAS Project service](https://docs.klaytnapi.com/v/en/getting-started/project-api) that limits the scope of your secure credential.

---

<div class="post-metadata">

**Author:** ![tobilova](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/tobilova/32/485_2.png) [@tobilova](https://devforum.kaia.io/u/tobilova)\
**Post date:** [7월 12, 2021, 3:03오전 UTC](https://devforum.kaia.io/t/kas-token-url-to-integrate-to-metamask-problem/1383/3 "2021-07-12T03:03:41Z")

</div>

> [@\_Luffy](#):
>
> `chain-id=8217` .

Thank you so much. I didn’t know we can put `chain-id=8217` as params instead of header value
