Developers · Your account
Access tokens
Create a scoped token for scripts and assistants, and keep it safe.
- 1
Create
Sign in, open Settings and create a token under Access tokens.
- 2
Pick a scope
Read only (the default) or Read + manage projects. An existing token's scope can't be raised; create a new one instead.
- 3
Store it
Copy it once into a secret store or an environment variable on your machine.
Use it#
Send it in the Authorization header over HTTPS. Check who it belongs to and what it can do:
bash
curl --fail-with-body "https://zash.xyz/api/v1/me" \
-H "Authorization: Bearer $ZASH_API_TOKEN"The response has your walletAddress, the token's scope and the authMethod.
Keep it secret: Never put a token in a URL, a repository, a screenshot or a chat. If one leaks, delete it in Settings straight away and create a new one.