Syndai Docs

Create an app API key

POST
/api/v1/external/coding/customers/{customer_id}/repositories/{coding_repository_id}/publication/data/api/keys

Makes a key for server-to-server calls to the app's /api and /sync, acting as member acts_as (null: the owner), so the app's rules judge it like that person. The answer carries the key ONCE (key); only its SHA-256 is kept. browser lets other sites' web pages use it (CORS); off, it works only from servers and the app itself. At most 20 per app. Needs coding:apps:publish.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid
coding_repository_id*string
Formatuuid

Request Body

application/json
  1. body
acts_as?|null
browser?boolean
Defaultfalse
label*string
Length1 <= length <= 80

Response Body

Request fulfilled, document follows

application/json
  1. response
key*string
record*
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/publication/data/api/keys' \  -H 'Content-Type: application/json' \  -d '{  "label": "string"}'
Example Response
{  "key": "string",  "record": {    "acts_as": "string",    "browser": true,    "created_at": "string",    "id": "string",    "label": "string",    "last_used_at": "string",    "member_id": "string"  }}
Was this page helpful?