Scaleway logo
Fake API

Test is a fake service that aim to manage fake humans. It is used for internal and public end-to-end tests.

This service don't use the Scaleway authentication service but a fake one. It allows to use this test service publicly without requiring a Scaleway account.

Getting Started

First, you need to call the Register method to create a new user. It will returns a secret_key that must be used in all other methods to authenticate yourself.

TerminalCode
curl -XPOST -d '{}' https://api.scaleway.com/test/v1/regions/fr-par/register | jq { "secret_key":"<SECRET_KEY>", "access_key":"<ACCESS_KEY>" }

Then you probably want to create your first human:

TerminalCode
curl -H "X-Auth-Token: <SECRET_KEY>" -XPOST\ -d '{"is_happy": true, "organization_id": "<ORG_ID>"}'\ https://api.scaleway.com/test/v1/regions/fr-par/humans | jq { "id": "39465185-0fd4-a178-892e-e285ece15114", "organization_id": "<ORG_ID>", "region": "fr-par", "created_at": "2019-12-13T14:55:48.502182100Z", "updated_at": "2019-12-13T14:55:48.502182100Z", "height": 0, "shoe_size": 0, "altitude_in_meter": 0, "altitude_in_millimeter": 0, "fingers_count": 0, "hair_count": 0, "is_happy": true, "eyes_color": "unknown", "status": "stopped" } ```.