Snag Solutions - API Docs (v 0.1)
What’s New
POST /api/phone/auth
Send Phone Verification Code
POST /api/phone/auth/connect
Verify Phone OTP and Connect
POST /api/phone/auth/disconnect
Disconnect Phone
What’s Changed
POST /api/users/metadatas
Request:
Changed content type :application/json
- Added property
phoneNumber(string)Phone number in E.164 format (e.g., +14155552671)
GET /api/loyalty/rule_edits
Return Type:
Changed response : 200 OK200
-
Changed content type :
application/json-
Changed property
data(array) Changed items (object):-
Changed property
data(object)Data that was changed on the rule
- Changed property
metadata(object)Optional metadata for the loyalty rule
- Changed property
-
Changed property
previousData(object)Previous data of the rule before the edit
- Changed property
metadata(object)Optional metadata for the loyalty rule
- Changed property
-
Changed property
-
Changed property
POST /api/loyalty/rule_edits//restore
Return Type:
Changed response : 200 OK200
-
Changed content type :
application/json-
Changed property
data(object)Data that was changed on the rule
- Changed property
metadata(object)Optional metadata for the loyalty rule
- Changed property
-
Changed property
previousData(object)Previous data of the rule before the edit
- Changed property
metadata(object)Optional metadata for the loyalty rule
- Changed property
-
Changed property
GET /api/loyalty/rule_groups
Return Type:
Changed response : 200 OK200
-
Changed content type :
application/json-
Changed property
data(array) Changed items (object):Schema for a get loyalty rule groups response
-
Changed property
loyaltyGroupItems(array) Changed items (object):-
Changed property
loyaltyRule(object)-
Changed property
type(string) Added enum value:connected_phone
-
Changed property
metadata(object)-
Changed property
liquidity(object)Liquidity pool details.
-
Changed property
network(string)Blockchain network of the liquidity pool.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
collection(array)Array of collections associated with the rule.
Changed items (object):-
Changed property
network(string)Blockchain network of the collection.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
socialPlatform(string)Social media platform associated with the rule.
Added enum value:Phone
-
Changed property
-
Changed property
-
Changed property
-
Changed property
-
Changed property
GET /api/loyalty/rules
Return Type:
Changed response : 200 OK200
-
Changed content type :
application/json-
Changed property
data(array) Changed items (object):- Changed property
metadata(object)Optional metadata for the loyalty rule
- Changed property
-
Changed property
POST /api/loyalty/rules
Request:
Changed content type :application/json
-
Changed property
network(string)Blockchain network where the rule will apply
Added enum value:dogeosTestnet
-
Changed property
type(string)Type of loyalty rule being created
Added enum value:connected_phone
-
Changed property
metadata(object)Additional metadata for the loyalty rule
-
Changed property
liquidity(object)Liquidity pool details.
-
Changed property
network(string)Blockchain network of the liquidity pool.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
collection(array)Array of collections associated with the rule.
Changed items (object):-
Changed property
network(string)Blockchain network of the collection.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
socialPlatform(string)Social media platform associated with the rule.
Added enum value:Phone
-
Changed property
-
Changed property
collections(array)List of associated collections
Changed items (object):-
Changed property
network(string)Blockchain network for the collection
Added enum value:dogeosTestnet
-
Changed property
Return Type:
Changed response : 200 OK200
-
Changed content type :
application/json-
Changed property
network(string)Blockchain network where the rule will apply
Added enum value:dogeosTestnet
-
Changed property
type(string)Type of loyalty rule being created
Added enum value:connected_phone
-
Changed property
metadata(object)Additional metadata for the loyalty rule
-
Changed property
liquidity(object)Liquidity pool details.
-
Changed property
network(string)Blockchain network of the liquidity pool.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
collection(array)Array of collections associated with the rule.
Changed items (object):-
Changed property
network(string)Blockchain network of the collection.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
socialPlatform(string)Social media platform associated with the rule.
Added enum value:Phone
-
Changed property
-
Changed property
collections(array)List of associated collections
Changed items (object):-
Changed property
network(string)Blockchain network for the collection
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
POST /api/loyalty/rules/
Request:
Changed content type :application/json
-
Changed property
metadata(object)Additional metadata for the loyalty rule
-
Changed property
liquidity(object)Liquidity pool details.
-
Changed property
network(string)Blockchain network of the liquidity pool.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
collection(array)Array of collections associated with the rule.
Changed items (object):-
Changed property
network(string)Blockchain network of the collection.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
socialPlatform(string)Social media platform associated with the rule.
Added enum value:Phone
-
Changed property
-
Changed property
network(string)Blockchain network where the rule will apply
Added enum value:dogeosTestnet
-
Changed property
collections(array)List of associated collections
Changed items (object):-
Changed property
network(string)Blockchain network for the collection
Added enum value:dogeosTestnet
-
Changed property
Return Type:
Changed response : 200 OK200
-
Changed content type :
application/json-
Changed property
metadata(object)Additional metadata for the loyalty rule
-
Changed property
liquidity(object)Liquidity pool details.
-
Changed property
network(string)Blockchain network of the liquidity pool.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
collection(array)Array of collections associated with the rule.
Changed items (object):-
Changed property
network(string)Blockchain network of the collection.
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
socialPlatform(string)Social media platform associated with the rule.
Added enum value:Phone
-
Changed property
-
Changed property
network(string)Blockchain network where the rule will apply
Added enum value:dogeosTestnet
-
Changed property
collections(array)List of associated collections
Changed items (object):-
Changed property
network(string)Blockchain network for the collection
Added enum value:dogeosTestnet
-
Changed property
-
Changed property
GET /api/minting/assets
Parameters:
Changed:network in query
Network
POST /api/minting/contracts/mint
Request:
Changed content type :application/json
-
Changed property
shippingOrderType(string) Added enum value:twilio
GET /api/minting/contracts
Return Type:
Changed response : 200 OK200
-
Changed content type :
application/json-
Changed property
data(array) Changed items (object):-
Changed property
network(string) Added enum value:dogeosTestnet
-
Changed property
mustOwnCollections(array) Changed items (object):-
Changed property
network(string) Added enum value:dogeosTestnet
-
Changed property
-
Changed property
-
Changed property
POST /api/website_collections
Request:
Changed content type :application/json
-
Changed property
network(string) Added enum value:dogeosTestnet
Result
API changes broke backward compatibility