İçeriğe geç

Veri

Koleksiyonlar, kayıtlar, proje anahtarları ve kanca teslimleri.

Bu sayfada

Kavramlar: Veri

Uç özetleri OpenAPI belgesinden gelir ve İngilizcedir.

GET/v1/projects/{project}/collections

Collections of the project's headless data layer with their schema, rules and record counts

İşlem (MCP aracı)
listCollections
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Gizli veri anahtarı (pfk_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKobject
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

POST/v1/projects/{project}/collections

Create a collection: name, fields, access rules and optional change hook. The first collection also creates the publishable key

İşlem (MCP aracı)
createCollection
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
Idempotency-Keyİsteğe bağlıbaşlıkstringReplays the first response for 24 hourslength 8–128

İstek gövdesi

application/jsonCollectionInputZorunlu

İstek gövdesi
AdTürAçıklama
nameZorunlustringpattern ^[a-z][a-z0-9_-]{0,63}$
fieldsZorunluField[]
rulesİsteğe bağlıRules
hookİsteğe bağlıHook | null

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
201CreatedCollection
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)

GET/v1/projects/{project}/collections/{collection}

One collection

İşlem (MCP aracı)
getCollection
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Gizli veri anahtarı (pfk_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
collectionZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKCollection
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

PATCH/v1/projects/{project}/collections/{collection}

Change fields (the full list), rules or the change hook. A field's type cannot change; making read, update or delete public needs a person, not an agent

İşlem (MCP aracı)
updateCollection
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
collectionZorunluyolstring

İstek gövdesi

application/jsonobjectZorunlu

İstek gövdesi
AdTürAçıklama
fieldsİsteğe bağlıField[]
rulesİsteğe bağlıRules
hookİsteğe bağlıHook | null

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKCollection
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

DELETE/v1/projects/{project}/collections/{collection}

Delete a collection and its records

İşlem (MCP aracı)
deleteCollection
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
collectionZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
204Deletedİçerik yok
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/projects/{project}/collections/{collection}/export

Export every record as CSV or JSON (a file). Not with the publishable key

İşlem (MCP aracı)
exportCollection
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Gizli veri anahtarı (pfk_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
collectionZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200Filestring
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/projects/{project}/data/{collection}

List records. filter[field]=value or filter[field][gte]=… (eq, ne, gt, gte, lt, lte, in) and sort=-createdAt on indexed and system fields. Counts toward the monthly data requests

İşlem (MCP aracı)
listRecords
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Gizli veri anahtarı (pfk_…)Yayınlanabilir veri anahtarı (pfp_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
collectionZorunluyolstring
filterİsteğe bağlısorguobjectfilter[field]=value or filter[field][op]=value (eq, ne, gt, gte, lt, lte, in)
sortİsteğe bağlısorgustring
limitİsteğe bağlısorguintegermin 1, max 100, default 50
cursorİsteğe bağlısorgustring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKobject
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
429ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

POST/v1/projects/{project}/data/{collection}

Add a record (the body is the record's fields). With the publishable key only when the collection's create rule is public

İşlem (MCP aracı)
createRecord
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Gizli veri anahtarı (pfk_…)Yayınlanabilir veri anahtarı (pfp_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
collectionZorunluyolstring

İstek gövdesi

application/jsonobjectZorunlu

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
201CreatedRecord
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
413ProblemProblem (RFC 9457)
422ProblemProblem (RFC 9457)
429ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/projects/{project}/data/{collection}/{record}

One record

İşlem (MCP aracı)
getRecord
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Gizli veri anahtarı (pfk_…)Yayınlanabilir veri anahtarı (pfp_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
collectionZorunluyolstring
recordZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKRecord
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
429ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

PATCH/v1/projects/{project}/data/{collection}/{record}

Change some fields; null removes a field

İşlem (MCP aracı)
updateRecord
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Gizli veri anahtarı (pfk_…)Yayınlanabilir veri anahtarı (pfp_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
collectionZorunluyolstring
recordZorunluyolstring

İstek gövdesi

application/jsonobjectZorunlu

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKRecord
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
413ProblemProblem (RFC 9457)
422ProblemProblem (RFC 9457)
429ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

DELETE/v1/projects/{project}/data/{collection}/{record}

Delete a record

İşlem (MCP aracı)
deleteRecord
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Gizli veri anahtarı (pfk_…)Yayınlanabilir veri anahtarı (pfp_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
collectionZorunluyolstring
recordZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
204Deletedİçerik yok
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
429ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/projects/{project}/data-keys

The project's publishable key and whether a secret key and webhook secret exist (the secret is never shown again)

İşlem (MCP aracı)
getDataKeys
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKDataKeys
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

POST/v1/projects/{project}/data-keys/publishable

Replace the publishable key; the old one stops working at once. Needs keys.manage and a person's key

İşlem (MCP aracı)
rotatePublishableKey
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKDataKeys
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

POST/v1/projects/{project}/data-keys/secret

Create or replace the secret key; returned once. It becomes the PERAFLY_SECRET_KEY environment variable from the next version. Needs keys.manage and a person's key

İşlem (MCP aracı)
createSecretKey
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
201Createdobject
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

DELETE/v1/projects/{project}/data-keys/secret

Revoke the secret key

İşlem (MCP aracı)
revokeSecretKey
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKDataKeys
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/projects/{project}/hook-deliveries

The last 50 change hook deliveries

İşlem (MCP aracı)
listHookDeliveries
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKobject
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.