Tablighgram Action API – HackMD
tags: Documentation

Tablighgram Actions API

Required instructions and notes to work with Tablighgram Actions API.

HTTP Status Codes

Code Text Description
200 OK Success!
400 Bad Request The request was invalid or cannot be otherwise served. An accompanying error code and message will explain further.
403 Unauthorized Missing or incorrect authentication credentials.
404 Not Found The requested resource could not be found. An accompanying error message will explain further.
500 Internal Server Error A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
{ "Content-Type": "application/x-www-form-urlencoded", }

Submit lead

URL: https://i.tablighdrive.com/drive/v2/actions/create
Headers: {Global Header}
Method POST
Body:

{ token : STRING - "REQUIRED", project_id : INT - "REQUIRED", ref : STRING , endpoint : STRING , content_id : STRING , tools : STRING , }

Output: 200

{ success: [ { message: STRING - "REQUIRED", } ] }

Output: 400
When there are errors
Example:

{ errors: [ { key: STRING - "REQUIRED", message: STRING - "REQUIRED", }, ] }

Import Note :

1)For taking token and project_id contact technical support or operation team.
2)If you do not have values endpoint and tools, send it blank.

Example code (Curl) :

curl --location --request POST 'https://i.tablighdrive.com/drive/v2/actions/create' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: sp_session=59dbcso38i8786aj5vgmu81umj226dc6' \ --data-urlencode 'token=YOURTOKEN' \ --data-urlencode 'project_id=700' \ --data-urlencode 'attribution=strinh' \ --data-urlencode 'endpoint=string'