A full reference of how to interact with our API correctly. If you're new, we recommend reading the quick start guide first.
If you're interacting with our API using Node.js, we recommend our Node.js client.
Below is a list of all the memes we currently support. You can select one with memeIndex
, see Create a Deployment.
Endpoint: /api/key/get
Method: POST
Body format: JSON
String
String
Example response:
{
key: 'xxx'
}
Endpoint: /api/key/regen
Method: POST
Body format: JSON
String
String
Example response:
{
key: 'yyy'
}
Endpoint: /api/deployments/create
Method: POST
Body format: JSON
String
Number
Example response:
{
code: 'I9htyZS8N',
uri: 'https://raas.now.sh/d/I9htyZS8N'
}
Endpoint: /api/deployments/list
Method: POST
Body format: JSON
String
Number
Example response:
{
deployments: [
{
code: 'I9htyZS8N',
memeIndex: 0,
views: 1
}
],
count: 1
}
Endpoint: /api/deployments/info
Method: POST
Body format: JSON
String
String
Example response:
{
memeIndex: 0,
memeUri: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
memeName: 'Rickroll',
views: 1,
uri: 'https://raas.now.sh/d/I9htyZS8N'
}
Endpoint: /api/deployments/view
Method: POST
Body format: JSON
String
String
Example response:
{
views: 2
}
Endpoint: /api/deployments/delete
Method: DELETE
Body format: JSON
String
String
Example response:
{
finalViews: 2
}
Endpoint: /api/aliases/alias
Method: POST
Body format: JSON
String
String
String
Example response:
{
uri: 'https://raas.now.sh/a/xxx'
}
If the alias doesn't exist, it'll be created, but if it does it'll be updated with the new code.
Endpoint: /api/aliases/list
Method: POST
Body format: JSON
String
String
Example response:
{
[
{
alias: 'xxx',
code: 'I9htyZS8N'
}
],
count: 1
}
Endpoint: /api/aliases/info
Method: POST
Body format: JSON
String
String
Example response:
{
code: 'I9htyZS8N',
uri: 'https://raas.now.sh/a/xxx'
}
Endpoint: /api/aliases/delete
Method: DELETE
Body format: JSON
String
String
Example response:
{
code: 'I9htyZS8N'
}
This section documents all the possible error responses you can get.
Response code 401
{
error: 'Username or password not specified'
}
Response code 401
{
error: 'Incorrect password'
}
Response code 401
{
error: 'User does not exist'
}
Response code 401
{
error: 'API key not specified'
}
Response code 404
{
error: 'Meme not found'
}
Response code 401
{
error: 'Invalid API key'
}
Response code 400
{
error: 'Code not specified'
}
Response code 404
{
error: 'Deployment not found'
}
Response code 403
{
error: 'You are not the owner of that deployment'
}
Response code 400
{
error: 'Alias or code not specified'
}
Response code 400
{
error: 'Invalid alias, must match regex /.../'
}
Response code 403
{
error: 'You are not the owner of that alias'
}
Response code 400
{
error: 'Alias not specified'
}
Response code 500
{
error: 'We messed up'
}