navbar.

lime currency API documentation


API.

POST https://heav.mondecitronne.com/api/limes/check

example input:

token=123456789012

the response will be one of these:

  • status code 200, with the value as output.
  • status code 404, with an error, if the given token doesn't correspond to lime currency.
  • status code 400, if you don't provide input correctly.

POST https://heav.mondecitronne.com/api/limes/claim

example input:

token=123456789012

the response will be one of these:

  • status code 200, with the new token as output.
  • status code 404, with an error, if the given token doesn't correspond to lime currency.
  • status code 400, if you don't provide input correctly.

POST https://heav.mondecitronne.com/api/limes/split

example input:

token=123456789012&amount1=5&amount2=10

the response will be one of these:

  • status code 200, with the two new tokens, seperated by a space.
  • status code 404, with an error, if the given token doesn't correspond to lime currency.
  • status code 400, with an error, if you don't provide one of the inputs or they're not numbers.
  • status code 403, with an error, if you try to split it into values that don't add up to the original value.

POST https://heav.mondecitronne.com/api/limes/merge

example input:

token1=123456789012&token2=815093589035

the response will be one of these:

  • status code 200, with the new token.
  • status code 404, with an error, if one of the given tokens doesn't correspond to lime currency.
  • status code 403, with an error, if you try to be clever and cheat the system.


rendered at time 1732184030.

message of the day #139:
oh no, i forgot to set the MOTD for this day, or just wasn't able to. feel free to murder me with rocks.