Getting started
Quickstart
Get up and running with Geins in minutes
Your First API Call in 5 Minutes
Get your API key and make your first call to the Geins Merchant API.
Step 1: Get Your API Key
- Log in to your account
- Got to the Merchant Center, navigate to Settings → API Keys
- Create a new API key or copy an existing one
Step 2: Make Your First Call
curl -X POST 'https://merchantapi.geins.io/graphql' \
-H 'Content-Type: application/json' \
-H 'X-ApiKey: {MERCHANT_API_KEY}' \
-d '{
"query": "query { products(take: 3) { products { productId name alias } } }"
}'
const response = await fetch('https://merchantapi.geins.io/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-ApiKey': '{MERCHANT_API_KEY}',
},
body: JSON.stringify({
query: `
query {
products(take: 3) {
products {
productId
name
alias
}
}
}
`,
}),
});
const data = await response.json();
console.log(data.data.products.products);
import requests
response = requests.post(
'https://merchantapi.geins.io/graphql',
headers={
'Content-Type': 'application/json',
'X-ApiKey': '{MERCHANT_API_KEY}',
},
json={
'query': '''
query {
products(take: 3) {
products {
productId
name
alias
}
}
}
'''
}
)
print(response.json())
Step 3: Explore the Response
{
"data": {
"products": {
"products": [
{
"productId": 12345,
"name": "Awesome Product",
"alias": "awesome-product"
}
]
}
}
}
🎉 Congratulations! You've just made your first Geins API call!